请问一下我以jcenter 的方式集成极光为啥报错


(Hello Word) #1

10-10 16:36:17.157 32502-32502/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.jione.tbguestbilldemo, PID: 32502
java.lang.RuntimeException: Unable to get provider cn.jpush.android.service.DataProvider: java.lang.ClassNotFoundException: Didn't find class "cn.jpush.android.service.DataProvider" on path: DexPathList[[zip file "/data/app/com.example.jione.tbguestbilldemo-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.jione.tbguestbilldemo-2/lib/arm64, /vendor/lib64, /system/lib64]]
at android.app.ActivityThread.installProvider(ActivityThread.java:5318)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4910)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4850)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:337)
at android.app.ActivityThread.handleBindApplication(<Xposed>)
at android.app.ActivityThread.access$1800(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1457)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5582)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:103)
Caused by: java.lang.ClassNotFoundException: Didn't find class "cn.jpush.android.service.DataProvider" on path: DexPathList[[zip file "/data/app/com.example.jione.tbguestbilldemo-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.jione.tbguestbilldemo-2/lib/arm64, /vendor/lib64, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at android.app.ActivityThread.installProvider(ActivityThread.java:5303)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4910) 
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4850) 
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method) 
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:337) 
at android.app.ActivityThread.handleBindApplication(<Xposed>) 
at android.app.ActivityThread.access$1800(ActivityThread.java:154) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1457) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:148) 
at android.app.ActivityThread.main(ActivityThread.java:5582) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:103) 
Suppressed: java.lang.ClassNotFoundException: Didn't find class "cn.jpush.android.service.DataProvider" on path: DexPathList[[dex file "/data/dalvik-cache/xposed_XResourcesSuperClass.dex"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 16 more
Suppressed: java.lang.ClassNotFoundException: cn.jpush.android.service.DataProvider
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 17 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

#2

请将你jcenter集成的配置发出来

请检查你的

是否对应且正确。


(Hello Word) #3

Jcore也要对吧


#4

这个是肯定需要的。


(Hello Word) #5

好的,谢谢哈,第一次用极光,服务挺好的 解决了我的问题


#6

不客气,之后有问题可以继续提问,在社区问了就不需要在QQ群重复问了。


(Hello Word) #7

好的 ,对了有没有只接收消息不展示的案例把消息打印出来


#8

自定义消息和alert为空的通知消息

推送 https://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/#message

接收 https://docs.jiguang.cn/jpush/client/Android/android_api/#receiver