onesignal notificationExtenderService VerifyError:Verifier被拒绝

时间:2017-10-30 15:19:39

标签: android push-notification onesignal

我已为OneSignal添加了NotificationExtenderService。

它上周完美运行(最后一次检查时),但现在它在收到通知时给我以下错误。但是,当我没有扩展NotificationExtenderService时,我能够收到通知。

我需要自定义通知处理,因此希望使用NotificationExtenderService进行扩展。

错误登录收到OneSignal通知:

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.goambee.theproject, PID: 17935
java.lang.VerifyError: Verifier rejected class com.packagename.NotificationExtenderOneSignal due to bad method java.lang.Object packagename.NotificationExtenderOneSignal.access$super(com.packagename.NotificationExtenderOneSignal, java.lang.String, java.lang.Object[]) (declaration of 'com.packagename.NotificationExtenderOneSignal' appears in /data/app/com.projectname-2/split_lib_slice_5_apk.apk)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1690)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3639)
at android.app.ActivityThread.access$2000(ActivityThread.java:218)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1801)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6917)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

0 个答案:

没有答案