注册

android 调试崩溃 Unable to resolve superclass

我在官网下载Android版本的easemob-sdk-2.2.2,在windows下用eclipse编译ChatDemoUI没有报错,但是在调试手机的时候,没有显示界面,也就是在初始化的时候,程序就直接就崩溃了。看哪位兄弟姐妹帮忙解决下。谢谢!
 
08-09 17:08:01.847: W/dalvikvm(13025): Unable to resolve superclass of Lcom/easemob/chatuidemo/activity/BaseActivity; (195)
08-09 17:08:01.847: W/dalvikvm(13025): Link of class 'Lcom/easemob/chatuidemo/activity/BaseActivity;' failed
08-09 17:08:01.847: W/dalvikvm(13025): Unable to resolve superclass of Lcom/easemob/chatuidemo/activity/MainActivity; (1017)
08-09 17:08:01.847: W/dalvikvm(13025): Link of class 'Lcom/easemob/chatuidemo/activity/MainActivity;' failed
08-09 17:08:01.847: E/dalvikvm(13025): Could not find class 'com.easemob.chatuidemo.activity.MainActivity', referenced from method com.easemob.chatuidemo.DemoHXSDKHelper.onConnectionConflict
08-09 17:08:01.847: W/dalvikvm(13025): VFY: unable to resolve const-class 1201 (Lcom/easemob/chatuidemo/activity/MainActivity;) in Lcom/easemob/chatuidemo/DemoHXSDKHelper;
08-09 17:08:01.847: D/dalvikvm(13025): VFY: replacing opcode 0x1c at 0x0004
08-09 17:08:01.847: W/dalvikvm(13025): Unable to resolve superclass of Lcom/easemob/chatuidemo/activity/BaseActivity; (195)
08-09 17:08:01.847: W/dalvikvm(13025): Link of class 'Lcom/easemob/chatuidemo/activity/BaseActivity;' failed
08-09 17:08:01.847: W/dalvikvm(13025): Unable to resolve superclass of Lcom/easemob/chatuidemo/activity/MainActivity; (1017)
08-09 17:08:01.847: W/dalvikvm(13025): Link of class 'Lcom/easemob/chatuidemo/activity/MainActivity;' failed
08-09 17:08:01.847: E/dalvikvm(13025): Could not find class 'com.easemob.chatuidemo.activity.MainActivity', referenced from method com.easemob.chatuidemo.DemoHXSDKHelper.onCurrentAccountRemoved
08-09 17:08:01.847: W/dalvikvm(13025): VFY: unable to resolve const-class 1201 (Lcom/easemob/chatuidemo/activity/MainActivity;) in Lcom/easemob/chatuidemo/DemoHXSDKHelper;
08-09 17:08:01.847: D/dalvikvm(13025): VFY: replacing opcode 0x1c at 0x0004
08-09 17:08:01.857: D/HXSDKHelper(13025): process app name : com.easemob.chatuidemo
 
 
 
08-09 17:08:02.017: W/dalvikvm(13025): threadid=1: thread exiting with uncaught exception (group=0x41de8c38)
08-09 17:08:02.017: E/AndroidRuntime(13025): FATAL EXCEPTION: main
08-09 17:08:02.017: E/AndroidRuntime(13025): Process: com.easemob.chatuidemo, PID: 13025
08-09 17:08:02.017: E/AndroidRuntime(13025): java.lang.NoClassDefFoundError: com.parse.Parse
08-09 17:08:02.017: E/AndroidRuntime(13025):  at com.easemob.chatuidemo.parse.ParseManager.onInit(ParseManager.java:50)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at com.easemob.chatuidemo.UserProfileManager.onInit(UserProfileManager.java:45)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at com.easemob.chatuidemo.DemoHXSDKHelper.onInit(DemoHXSDKHelper.java:102)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at com.easemob.chatuidemo.DemoApplication.onCreate(DemoApplication.java:59)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1009)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4558)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at android.app.ActivityThread.access$1800(ActivityThread.java:135)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1292)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at android.os.Handler.dispatchMessage(Handler.java:102)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at android.os.Looper.loop(Looper.java:136)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at android.app.ActivityThread.main(ActivityThread.java:5234)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at java.lang.reflect.Method.invokeNative(Native Method)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at java.lang.reflect.Method.invoke(Method.java:515)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:834)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:650)
08-09 17:08:02.017: E/AndroidRuntime(13025):  at dalvik.system.NativeStart.main(Native Method)
已邀请:

lzan13 - 慢慢来,一步一个脚印?

赞同来自: awordman

你好,这个应该是你的编译器版本过低的问题,打开你的SDKManager看下你的build-tools这个要更新到19以上,如果不能连接google服务器,可以在这里看下并设置镜像 http://www.androiddevtools.cn/ 更新完然后clean下项目,编译测试下,有问题继续提问!

awordman - android 开发

是这个问题,已经解决,多谢!

要回复问题请先登录注册