我使用 jpush 3.4.1 jcore 2.2.4 init 后 调用 getRegistrationID 返回空 无法得到设备注册id

标签: #<Tag:0x00007f65831bb3f0>

以下是 输出的 logcat

2019-12-01 15:49:20.092 3074-3074/com.tongxin.mobile D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:change_foreground
2019-12-01 15:49:28.112 3497-3497/com.tongxin.mobile D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.4.1, buildId:57
2019-12-01 15:49:28.128 3497-3497/com.tongxin.mobile D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
2019-12-01 15:49:28.133 3497-3497/com.tongxin.mobile I/JIGUANG-JPush: [JPushGobal] found messageReceiverClass :com.tongxin.mobile.MyPushMessageReceiverat com.tongxin.mobile by getCommonReceiverNames
2019-12-01 15:49:28.168 3497-3536/com.tongxin.mobile D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:init
2019-12-01 15:49:28.168 3497-3543/com.tongxin.mobile I/JIGUANG-JCore: [JCoreGobal] action:init jcore,version:2.2.4,build id:63
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at android.content.pm.ComponentInfo cn.jiguang.f.a.a(android.content.Context, java.lang.String, java.lang.Class) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at java.lang.String cn.jiguang.am.c.b(android.content.Context) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at boolean cn.jiguang.a.a.a(android.content.Context) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at void cn.jiguang.a.c.run() ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at android.content.pm.ComponentInfo cn.jiguang.f.a.a(android.content.Context, java.lang.String, java.lang.Class) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at java.lang.String cn.jiguang.am.c.b(android.content.Context) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at boolean cn.jiguang.a.a.a(android.content.Context) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at void cn.jiguang.a.c.run() ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at android.content.pm.ComponentInfo cn.jiguang.f.a.a(android.content.Context, java.lang.String, java.lang.Class) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at java.lang.String cn.jiguang.am.c.b(android.content.Context) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at boolean cn.jiguang.a.a.a(android.content.Context) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at void cn.jiguang.a.c.run() ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at android.content.pm.ComponentInfo cn.jiguang.f.a.a(android.content.Context, java.lang.String, java.lang.Class) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at java.lang.String cn.jiguang.am.c.b(android.content.Context) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at boolean cn.jiguang.a.a.a(android.content.Context) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at void cn.jiguang.a.c.run() ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at android.content.pm.ComponentInfo cn.jiguang.f.a.a(android.content.Context, java.lang.String, java.lang.Class) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at java.lang.String cn.jiguang.am.c.b(android.content.Context) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at boolean cn.jiguang.a.a.a(android.content.Context) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at void cn.jiguang.a.c.run() ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at android.content.pm.ComponentInfo cn.jiguang.f.a.a(android.content.Context, java.lang.String, java.lang.Class) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at java.lang.String cn.jiguang.am.c.b(android.content.Context) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at boolean cn.jiguang.a.a.a(android.content.Context) ((null):-1)
2019-12-01 15:49:28.179 3497-3543/com.tongxin.mobile I/.tongxin.mobil:     at void cn.jiguang.a.c.run() ((null):-1)

日志不全,无法分析,请获取详细的 log 来分析

你好 lrisJay 这是 我在 android studio logcat 过滤 jiguang 获取的所有 有关日志,你说的日志不全,应该需要 什么样的日志? 不需要过滤 jiguang 的所有日志?

12-02 17:47:51.918 2419 2685 D ZrHung.AppEyeUiProbe: not watching, wait.
12-02 17:47:51.926 10997 11018 E AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@3e7029c
12-02 17:47:52.010 1509 2094 I TrafficMonitor: expired arrive. level:-1
12-02 17:47:52.010 1509 2094 I TrafficMonitor: during_ms:2003,period_ms:2000
12-02 17:47:52.010 1509 2094 I TrafficMonitor: count:281,rx_sum:14,tx_sum:0,rxBytes:5214,during_ms:2003,rx_speed:2603.095356964553,tx_speed:0.0,rto:0.0
12-02 17:47:52.591 10997 10997 I JS : HMR: Hot Module Replacement Enabled. Waiting for signal.
12-02 17:47:52.609 10997 10997 I org.libsodium.jni.NaCl: librarypath=/system/lib64:/product/lib64
12-02 17:47:52.712 10997 11037 D NetworkSecurityConfig: No Network Security Config specified, using platform default
12-02 17:47:52.716 10997 11013 E MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
12-02 17:47:52.720 10997 10997 D ZrHung.AppEyeUiProbe: notify runnable to start.
12-02 17:47:52.720 10997 11039 D ZrHung.AppEyeUiProbe: Runnable thread started.
12-02 17:47:52.724 789 3521 E LOGSERVER_UTILS: [Erecovery]readEvent: eRecEventManager readEvent 0
12-02 17:47:52.725 10997 10997 V ActivityThread: Skipping new config:{1.0 ?mcc?mnc [zh_CN_#Hans] ldltr sw360dp w360dp h713dp 480dpi nrml long port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 0, 0) mAppBounds=Rect(0, 81 - 1080, 2220) mWindowingMode=fullscreen mActivityType=undefined} nonFullScreen=0 suim:1 s.16}, config:{1.0 ?mcc?mnc [zh_CN_#Hans] ldltr sw360dp w360dp h713dp 480dpi nrml long port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 0, 0) mAppBounds=Rect(0, 81 - 1080, 2220) mWindowingMode=fullscreen mActivityType=undefined} nonFullScreen=0 suim:1 s.16} for app:com.tongxin.mobile
12-02 17:47:52.746 10997 10997 V HwPolicyFactory: : success to get AllImpl object and return…
12-02 17:47:52.750 10997 10997 V ActivityThread: callActivityOnCreate
12-02 17:47:52.761 10997 11037 D skia : — Failed to create image decoder with message ‘unimplemented’
12-02 17:47:52.840 10997 10997 D ActionManager: addAction type:JPUSH,action:cn.jpush.android.helper.f
12-02 17:47:52.844 10997 10997 D JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.4.1, buildId:57
12-02 17:47:52.860 10997 10997 D JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
12-02 17:47:52.865 10997 10997 I JIGUANG-JPush: [JPushGobal] found messageReceiverClass :com.tongxin.mobile.MyPushMessageReceiverat com.tongxin.mobile by getCommonReceiverNames
12-02 17:47:52.890 10997 11042 D JIGUANG-JCore: [JCoreHelper] runActionWithService action:init
12-02 17:47:52.890 10997 11049 I JIGUANG-JCore: [JCoreGobal] action:init jcore,version:2.2.4,build id:63
12-02 17:47:52.896 10997 10997 I JS : ===============================
12-02 17:47:52.896 10997 10997 I JS : android Access token:
12-02 17:47:52.900 10997 11049 I .tongxin.mobil: Rejecting re-init on previously-failed class java.lang.Class<com.telerik.pushplugin.PushPlugin>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/simplec/telehealth/notify/fcm/NotifyFirebaseMessagingService;
12-02 17:47:52.900 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.Class.classForName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2)
12-02 17:47:52.900 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:453)
12-02 17:47:52.900 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.Class.forName(java.lang.String) (Class.java:378)
12-02 17:47:52.900 10997 11049 I .tongxin.mobil: at android.content.pm.ComponentInfo cn.jiguang.f.a.a(android.content.Context, java.lang.String, java.lang.Class) ((null):-1)
12-02 17:47:52.900 10997 11049 I .tongxin.mobil: at java.lang.String cn.jiguang.am.c.b(android.content.Context) ((null):-1)
12-02 17:47:52.900 10997 11049 I .tongxin.mobil: at boolean cn.jiguang.a.a.a(android.content.Context) ((null):-1)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at void cn.jiguang.a.c.run() ((null):-1)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at boolean java.util.concurrent.ThreadPoolExecutor.processTask(java.lang.Thread, java.util.concurrent.ThreadPoolExecutor$Worker, boolean) (ThreadPoolExecutor.java:1187)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1152)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:641)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at void java.lang.Thread.run() (Thread.java:784)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.simplec.telehealth.notify.fcm.NotifyFirebaseMessagingService” on path: DexPathList[[zip file “/data/app/com.tongxin.mobile-UY1ekTMxaDUiVYni_n7rDA==/base.apk”],nativeLibraryDirectories=[/data/app/com.tongxin.mobile-UY1ekTMxaDUiVYni_n7rDA==/lib/arm64, /data/app/com.tongxin.mobile-UY1ekTMxaDUiVYni_n7rDA==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.Class.classForName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:453)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.Class.forName(java.lang.String) (Class.java:378)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at android.content.pm.ComponentInfo cn.jiguang.f.a.a(android.content.Context, java.lang.String, java.lang.Class) ((null):-1)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.String cn.jiguang.am.c.b(android.content.Context) ((null):-1)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at boolean cn.jiguang.a.a.a(android.content.Context) ((null):-1)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at void cn.jiguang.a.c.run() ((null):-1)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at boolean java.util.concurrent.ThreadPoolExecutor.processTask(java.lang.Thread, java.util.concurrent.ThreadPoolExecutor$Worker, boolean) (ThreadPoolExecutor.java:1187)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1152)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:641)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at void java.lang.Thread.run() (Thread.java:784)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil:
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: Rejecting re-init on previously-failed class java.lang.Class<com.telerik.pushplugin.PushPlugin>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/simplec/telehealth/notify/fcm/NotifyFirebaseMessagingService;
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.Class.classForName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:453)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.Class.forName(java.lang.String) (Class.java:378)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at android.content.pm.ComponentInfo cn.jiguang.f.a.a(android.content.Context, java.lang.String, java.lang.Class) ((null):-1)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.String cn.jiguang.am.c.b(android.content.Context) ((null):-1)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at boolean cn.jiguang.a.a.a(android.content.Context) ((null):-1)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at void cn.jiguang.a.c.run() ((null):-1)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at boolean java.util.concurrent.ThreadPoolExecutor.processTask(java.lang.Thread, java.util.concurrent.ThreadPoolExecutor$Worker, boolean) (ThreadPoolExecutor.java:1187)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1152)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:641)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at void java.lang.Thread.run() (Thread.java:784)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.simplec.telehealth.notify.fcm.NotifyFirebaseMessagingService” on path: DexPathList[[zip file “/data/app/com.tongxin.mobile-UY1ekTMxaDUiVYni_n7rDA==/base.apk”],nativeLibraryDirectories=[/data/app/com.tongxin.mobile-UY1ekTMxaDUiVYni_n7rDA==/lib/arm64, /data/app/com.tongxin.mobile-UY1ekTMxaDUiVYni_n7rDA==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.Class.classForName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:453)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.Class java.lang.Class.forName(java.lang.String) (Class.java:378)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at android.content.pm.ComponentInfo cn.jiguang.f.a.a(android.content.Context, java.lang.String, java.lang.Class) ((null):-1)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at java.lang.String cn.jiguang.am.c.b(android.content.Context) ((null):-1)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at boolean cn.jiguang.a.a.a(android.content.Context) ((null):-1)
12-02 17:47:52.901 10997 11049 I .tongxin.mobil: at void cn.jiguang.a.c.run() ((null):-1)

你日志里面 jiguang 这个 tag 的信息很少,没有看到集成失败或成功的相关提示信息。

请阅读一下上面给你的链接阅读下,可能是手机日志权限需要开一下。