问题描述
10-21 13:42:55.930: E/AndroidRuntime(20022): FATAL EXCEPTION: main10-21 13:42:55.930: E/AndroidRuntime(20022): java.lang.NoClassDefFoundError: com.parse.Parse10-21 13:42:55.930: E/AndroidRuntime(20022): at com.easemob.chatuidemo.parse.ParseManager.onInit(ParseManager.java:47)10-21 13:42:55.930: E/AndroidRuntime(20022): at com.easemob.chatuidemo.parse.UserProfileManager.init(UserProfileManager.java:44)10-21 13:42:55.930: E/AndroidRuntime(20022): at com.easemob.chatuidemo.DemoHelper.init(DemoHelper.java:164)10-21 13:42:55.930: E/AndroidRuntime(20022): at com.easemob.chatuidemo.DemoApplication.onCreate(DemoApplication.java:40)10-21 13:42:55.930: E/AndroidRuntime(20022): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:981)10-21 13:42:55.930: E/AndroidRuntime(20022): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4494)10-21 13:42:55.930: E/AndroidRuntime(20022): at android.app.ActivityThread.access$1300(ActivityThread.java:139)10-21 13:42:55.930: E/AndroidRuntime(20022): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1306)10-21 13:42:55.930: E/AndroidRuntime(20022): at android.os.Handler.dispatchMessage(Handler.java:99)10-21 13:42:55.930: E/AndroidRuntime(20022): at android.os.Looper.loop(Looper.java:156)10-21 13:42:55.930: E/AndroidRuntime(20022): at android.app.ActivityThread.main(ActivityThread.java:4987)10-21 13:42:55.930: E/AndroidRuntime(20022): at java.lang.reflect.Method.invokeNative(Native Method)10-21 13:42:55.930: E/AndroidRuntime(20022): at java.lang.reflect.Method.invoke(Method.java:511)10-21 13:42:55.930: E/AndroidRuntime(20022): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)10-21 13:42:55.930: E/AndroidRuntime(20022): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)10-21 13:42:55.930: E/AndroidRuntime(20022): at dalvik.system.NativeStart.main(Native Method)
解决方案
parse SDK有添加吗
解决方案二:
我在merge进android4.2的源码里面也碰到了这个问题