使用极光推送 安卓4.x报错


(No危) #1
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at org.greenrobot.eventbus.EventBus.register(EventBus.java:136)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at com.ctrlsoft.faqtjt.activity.BaseActivity.onCreate(BaseActivity.java:50)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at com.ctrlsoft.faqtjt.activity.StartActivity.onCreate(StartActivity.java:67)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at android.app.Activity.performCreate(Activity.java:5013)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at cn.jiguang.a.a.d.a.a.d.callActivityOnCreate(Unknown Source)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2041)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2102)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at android.app.ActivityThread.access$600(ActivityThread.java:137)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at android.os.Handler.dispatchMessage(Handler.java:99)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at android.os.Looper.loop(Looper.java:137)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at android.app.ActivityThread.main(ActivityThread.java:4825)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at java.lang.reflect.Method.invokeNative(Native Method)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at java.lang.reflect.Method.invoke(Method.java:511)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at dalvik.system.NativeStart.main(Native Method)
11-13 10:21:27.979: E/AndroidRuntime(4129): Caused by: java.lang.ClassNotFoundException: java.util.Objects
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
11-13 10:21:27.979: E/AndroidRuntime(4129): 	... 24 more
11-13 10:21:28.239: W/dalvikvm(4178): VFY: unable to find class referenced in signature (Landroid/app/job/JobInfo;)
11-13 10:21:28.239: W/dalvikvm(4178): Unable to resolve superclass of Lcn/jpush/android/service/PushJobService; (66)
11-13 10:21:28.239: W/dalvikvm(4178): Link of class 'Lcn/jpush/android/service/PushJobService;' failed
11-13 10:21:28.239: E/dalvikvm(4178): Could not find class 'cn.jpush.android.service.PushJobService', referenced from method cn.jiguang.e.a.a
11-13 10:21:28.239: W/dalvikvm(4178): VFY: unable to resolve const-class 2017 (Lcn/jpush/android/service/PushJobService;) in Lcn/jiguang/e/a;
11-13 10:21:28.249: W/dalvikvm(4178): VFY: unable to resolve virtual method 129: Landroid/app/AlarmManager;.setWindow (IJJLandroid/app/PendingIntent;)V
11-13 10:21:28.249: E/dalvikvm(4178): Could not find class 'android.app.job.JobInfo$Builder', referenced from method cn.jiguang.e.a.j
11-13 10:21:28.249: W/dalvikvm(4178): VFY: unable to resolve new-instance 62 (Landroid/app/job/JobInfo$Builder;) in Lcn/jiguang/e/a;
11-13 10:21:28.249: E/dalvikvm(4178): Could not find class 'android.app.job.JobInfo$Builder', referenced from method cn.jiguang.e.a.k
11-13 10:21:28.249: W/dalvikvm(4178): VFY: unable to resolve new-instance 62 (Landroid/app/job/JobInfo$Builder;) in Lcn/jiguang/e/a;
11-13 10:21:28.369: E/dalvikvm(4178): GC_CONCURRENT freed 1311K, 16% free 8944K/10631K, paused 2ms+17ms, total 63ms
11-13 10:21:28.389: W/dalvikvm(4178): VFY: unable to resolve static method 33430: Lcom/xiaomi/mipush/sdk/MiPushClient;.shouldUseMIUIPush (Landroid/content/Context;)Z
11-13 10:21:28.389: W/dalvikvm(4178): VFY: unable to resolve static field 12180 (HuaweiPushApi) in Lcom/huawei/hms/support/api/push/HuaweiPush;

#2

java.lang.ClassNotFoundException: java.util.Objects
这个 报错,与极光无关,你打断点调试下

里面有关于极光相关的Job的警告,可以忽略,这是不影响使用的

如果使用SDK有问题,看有极光相关的错误