例如:
报错
FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.zwwx.sgzs.kakao.ThirdPartyPostStoryActivity
at com.zwwx.sgzs.kakao.KakaoFacade$16.run(KakaoFacade.java:710)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4918)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
at dalvik.system.NativeStart.main(Native Method)
解决方案
1、打开jar文件检查是否有报错类的class文件
2、如果报错类继承了某个类,还要确保父类也编译进了jar