集成android 版推送报错

jpush
标签: #<Tag:0x00007fb83cc3ad10>

(9445862@qq.com ) #1
11-13 10:28:39.363 20092-20092/? E/SoundPool: int android::Soundpool_perf_lock_init(): Perf lock handles Success 
11-13 10:28:43.017 20092-20092/com.qiduo.duduhuyu E/TAG: invalid argument
11-13 10:28:43.149 20092-20092/com.qiduo.duduhuyu E/VivoSystemReflect: Failure register UserProfilingManager
 java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at android.app.VivoSystemReflect$7.createService(VivoSystemReflect.java:461)
at android.app.SystemServiceRegistry$CachedServiceFetcher.getService(SystemServiceRegistry.java:860)
at android.app.SystemServiceRegistry.getSystemService(SystemServiceRegistry.java:801)
at android.app.ContextImpl.getSystemService(ContextImpl.java:1512)
at android.content.ContextWrapper.getSystemService(ContextWrapper.java:659)
at android.app.Application.getUserProfilingManager(Application.java:328)
at android.app.Activity.onResume(Activity.java:1291)

我是按文档接的,接了几遍,就报这个问题,比较纠结!请教一下!


#2

报的错误里面没有 jiguang 相关的内容

请开启极光的debug,看极光相关的错误信息


(9445862@qq.com ) #3
11-13 13:51:33.070 16452-16452/? D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
11-13 13:51:33.073 16452-16498/? I/MID: read mid from Settings.System
11-13 13:51:33.074 2930-9153/? I/ExtraAlarmManager: Uid : 10305, Package name is : com.qiduo.duduhuyu
11-13 13:51:33.074 2930-9153/? I/ExtraAlarmManager: type: 0 Type: 1
11-13 13:51:33.074 2930-9153/? V/AlarmAlign: addAlarm pkg = com.qiduo.duduhuyu, whenElapsed = 64668752
11-13 13:51:33.077 2930-5176/? I/PackageManager: ### pkg:Package{222188b com.qiduo.duduhuyu}
11-13 13:51:33.079 16452-16452/? E/JIGUANG-JCore: [AndroidUtil] The permissoin is required - com.qiduo.duduhuyu.permission.JPUSH_MESSAGE
11-13 13:51:33.079 16452-16452/? W/JIGUANG-JCore: [JCoreInterface] JCore init failed
11-13 13:51:33.081 16452-16498/? I/MID: read mid from InternalStorage
11-13 13:51:33.082 16452-16452/? D/Cocos2dxActivity: onResume()
11-13 13:51:33.082 16452-16452/? V/MicroMsg.SDK.WXApiImplV10.ActivityLifecycleCb: org.cocos2dx.javascript.AppActivity  onActivityResumed
11-13 13:51:33.084 16452-16498/? I/MID: read mid from InternalStorage:xjgD6zAYj0802BaA1JxA6XOaIJN67nm8SnAJpFaX2PhicUBmi+vXgrY0Hzb7T3EJQUN0x+dWSUxqQXZKrwzUYgNenqI+tJTEUOekSib8t74g9acVc9YwCEI39XFMEBgvIAZox+SCzb5cN1o+wkqBZWSnNkfu
11-13 13:51:33.088 16452-16452/? E/VivoSystemReflect: Failure register UserProfilingManager
                                                      java.lang.reflect.InvocationTargetException
                                                          at java.lang.reflect.Constructor.newInstance0(Native Method)
                                                          at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
                                                          at android.app.VivoSystemReflect$7.createService(VivoSystemReflect.java:461)
                                                          at android.app.SystemServiceRegistry$CachedServiceFetcher.getService(SystemServiceRegistry.java:860)
                                                          at android.app.SystemServiceRegistry.getSystemService(SystemServiceRegistry.java:801)
                                                          at android.app.ContextImpl.getSystemService(ContextImpl.java:1512)
                                                          at android.content.ContextWrapper

报 JCore init failed 错误


#4

根据报错信息去检查一下你的配置

参考demo的Androidmanifest重新写一遍配置!

在配置确确实实正确的情况下,检查包名:

  • 仔细检查你工程里涉及包名的地方
  • 应是包名冲突或者缺失导致。
  • 手机里有配置同样包名的app卸载掉

(9445862@qq.com ) #5

好的,我试试


(9445862@qq.com ) #6

还是一样的,重新仔细对了了遍,写了一遍,还是有这个问题


#7

去检查下包名


(9445862@qq.com ) #8

我接的其他的sdk都对,使用的也是这个包名,包名应该没有问题的,和申请的id也是一致的


#9

不是说你包名本身有问题,让你检查这些


(9445862@qq.com ) #10

好的,我都重新接第四遍了


#11

重配之后,除非跟上面的错误一一模一样,否则你应提供最新的错误信息上来看一下


(9445862@qq.com ) #12

完全是一样的


(9445862@qq.com ) #13

11-13 18:27:26.809 30673-30673/? D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.0.9, buildId:384
11-13 18:27:26.814 30673-30673/? D/JIGUANG-JCore: [JCoreGlobal] metadata: appKey - e2526fc34adfb40bbe6570bb
11-13 18:27:26.814 30673-30673/? D/JIGUANG-JCore: [JCoreGlobal] metadata: channel - developer-default
11-13 18:27:26.815 30673-30673/? D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
11-13 18:27:26.818 30673-30673/? D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
11-13 18:27:26.819 2930-3121/? I/ExtraAlarmManager: Uid : 10310, Package name is : com.qiduo.duduhuyu
11-13 18:27:26.819 2930-3121/? I/ExtraAlarmManager: type: 0 Type: 1
11-13 18:27:26.819 2930-3121/? V/AlarmAlign: addAlarm pkg = com.qiduo.duduhuyu, whenElapsed = 81222498
11-13 18:27:26.821 2930-9154/? I/PackageManager: ### pkg:Package{71dcf9f com.qiduo.duduhuyu}
11-13 18:27:26.824 30673-30673/? D/JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.1.7, buildId:155
11-13 18:27:26.827 30673-30739/? I/MID: read mid from Settings.System
11-13 18:27:26.830 30673-30673/? D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
11-13 18:27:26.832 30673-30739/? I/MID: read mid from InternalStorage
11-13 18:27:26.833 30673-30739/? I/MID: read mid from InternalStorage:xjgD6zAYj0802BaA1JxA6XOaIJN67nm8SnAJpFaX2PhicUBmi+vXgrY0Hzb7T3EJQUN0x+dWSUxqQXZKrwzUYgNenqI+tJTEUOekSib8t74g9acVc9YwCEI39XFMEBgvIAZox+SCzb5cN1o+wkqBZWSnNkfu
11-13 18:27:26.837 30673-30673/? I/JIGUANG-JPush: [PluginPlatformsInterface] whichPlatform - 0
11-13 18:27:26.839 30673-30673/? D/Cocos2dxActivity: onResume()
11-13 18:27:26.839 30673-30673/? V/MicroMsg.SDK.WXApiImplV10.ActivityLifecycleCb: org.cocos2dx.javascript.AppActivity onActivityResumed
11-13 18:27:26.839 2930-4392/? E/LocSvc_eng: E/Calling gnss_sv_status_cb
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: SV count: 17
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 1 cn0: 0.0 elev: 1.0 azimuth: 317.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 10 cn0: 0.0 elev: 73.0 azimuth: 194.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 12 cn0: 0.0 elev: 33.0 azimuth: 54.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 14 cn0: 0.0 elev: 40.0 azimuth: 314.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 18 cn0: 0.0 elev: 44.0 azimuth: 161.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 24 cn0: 0.0 elev: 10.0 azimuth: 50.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 25 cn0: 0.0 elev: 56.0 azimuth: 104.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 26 cn0: 0.0 elev: 0.0 azimuth: 0.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 31 cn0: 0.0 elev: 37.0 azimuth: 250.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 32 cn0: 0.0 elev: 54.0 azimuth: 337.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 10 cn0: 0.0 elev: 53.0 azimuth: 224.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 6 cn0: 0.0 elev: 40.0 azimuth: 122.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 9 cn0: 0.0 elev: 63.0 azimuth: 18.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 16 cn0: 0.0 elev: 11.0 azimuth: 30.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 11 cn0: 0.0 elev: 2.0 azimuth: 215.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 7 cn0: 0.0 elev: 69.0 azimuth: 21.0 A
11-13 18:27:26.839 2930-4392/? V/GnssLocationProvider: svid: 8 cn0: 0.0 elev: 25.0 azimuth: 329.0 A
11-13 18:27:26.839 2930-4392/? E/IzatSvc_PassiveLocListener: E/Exiting with error virtual void izat_manager::IzatPassiveLocationListener::onLocationChanged(const izat_manager::IzatLocation *, const IzatLocationStatus) line 171 “1”
11-13 18:27:26.841 2930-9359/? D/LocationManagerService: getLastLocation: Request[ACCURACY_FINE gps requested=0 fastest=0 num=1] pkg com.baidu.map.location
11-13 18:27:26.841 2930-9359/? D/LocationManagerService: gps provider isEnable??? true mNLPSwitchISEnable:true isCloudOpen:true
11-13 18:27:26.843 30673-30673/? E/VivoSystemReflect: Failure register UserProfilingManager
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at android.app.VivoSystemReflect$7.createService(VivoSystemReflect.java:461)
at android.app.SystemServiceRegistry$CachedServiceFetcher.getService(SystemServiceRegistry.java:860)
at android.app.SystemServiceRegistry.getSystemService(SystemServiceRegistry.java:801)
at android.app.ContextImpl.getSystemService(ContextImpl.java:1512)
at android.content.ContextWrapper.getSystemService(ContextWrapper.java:659)
at android.app.Application.getUserProfilingManager(Application.java:328)
at android.app.Activity.onResume(Activity.java:1291)
at org.cocos2dx.lib.Cocos2dxActivity.onResume(Cocos2dxActivity.java:306)
at org.cocos2dx.javascript.AppActivity.onResume(AppActivity.java:395)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1276)
at android.app.Activity.performResume(Activity.java:6955)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3514)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3577)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2840)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1558)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6295)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:900)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:790)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘int java.lang.String.length()’ on a null object reference

还有点问题,麻烦帮忙指导一下!


#14

这个报错与极光无关呐


(9445862@qq.com ) #15

还有就是有的机型好像不行啊,接受不到推送,这时什么方面的原因,我接了6遍,其他手机都能收到,就我测试的vivo手机收不到,搞不清是什么情况?


#16

去检查通知栏的设置开了没


(9445862@qq.com ) #17

感谢指导!都解决了