推送初始化异常问题

android
标签: #<Tag:0x00007f83d48259d8>

#1

昨天还是正常的,今天打release包还是运行都提示初始化失败:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com., PID: 16965
java.lang.NoClassDefFoundError: Failed resolution of: Lcn/jpush/android/helper/f;
at cn.jpush.android.api.JPushInterface.(Unknown Source)
at cn.jpush.android.api.JPushInterface.setDebugMode(Unknown Source)
at com.
.MyAppLication.onCreate(MyAppLication.java:111)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1025)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5530)
at android.app.ActivityThread.-wrap2(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1611)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:165)
at android.app.ActivityThread.main(ActivityThread.java:6375)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)
Caused by: java.lang.ClassNotFoundException: cn.jpush.android.helper.f
at java.lang.VMClassLoader.findLoadedClass(Native Method)
at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742)
at java.lang.ClassLoader.loadClass(ClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at cn.jpush.android.api.JPushInterface.(Unknown Source)
at cn.jpush.android.api.JPushInterface.setDebugMode(Unknown Source)
at com..MyAppLication.onCreate(MyAppLication.java:111)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1025)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5530)
at android.app.ActivityThread.-wrap2(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1611)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:165)
at android.app.ActivityThread.main(ActivityThread.java:6375)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcn/jiguang/api/JDispatchAction;
at cn.jpush.android.api.JPushInterface.(Unknown Source)
at cn.jpush.android.api.JPushInterface.setDebugMode(Unknown Source)
at com.
.MyAppLication.onCreate(MyAppLication.java:111)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1025)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5530)
at android.app.ActivityThread.-wrap2(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1611)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:165)
at android.app.ActivityThread.main(ActivityThread.java:6375)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)
Caused by: java.lang.ClassNotFoundException: Didn’t find class “cn.jiguang.api.JDispatchAction” on path: DexPathList[[zip file "/data/app/com.-1/base.apk"],nativeLibraryDirectories=[/data/app/com.-1/lib/arm64, /system/fake-libs64, /data/app/com.-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:74)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at cn.jpush.android.api.JPushInterface.(Unknown Source)
at cn.jpush.android.api.JPushInterface.setDebugMode(Unknown Source)
at com.
.MyAppLication.onCreate(MyAppLication.java:111)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1025)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5530)
at android.app.ActivityThread.-wrap2(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1611)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:165)
at android.app.ActivityThread.main(ActivityThread.java:6375)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)


#2

检查看下是不是极光的某些包丢失了,你重新运行,从初始化开始提供日志