pushservice和华为手机系统冲突

android
标签: #<Tag:0x00007fb83f973d68>

(Finder) #1

在《AndroidManifest.xml》清单文件中配置以后和华为nova3荣耀畅玩6x手机冲突,app来回重启

<!-- Required SDK 核心功能 -->
        <!-- 可配置android:process参数将PushService放在其他进程中 -->
        <service
            android:name="cn.jpush.android.service.PushService"
            android:enabled="true"
            android:exported="false">
            <intent-filter>
                <action android:name="cn.jpush.android.intent.REGISTER" />
                <action android:name="cn.jpush.android.intent.REPORT" />
                <action android:name="cn.jpush.android.intent.PushService" />
                <action android:name="cn.jpush.android.intent.PUSH_TIME" />
            </intent-filter>
        </service>

错误信息:

java.lang.RuntimeException: Unable to create service cn.jpush.android.service.PushService: java.lang.IllegalArgumentException: Component class cn.jpush.android.service.PushReceiver does not exist in com.yaoliutong.nmagent
                                                                            at android.app.ActivityThread.handleCreateService(ActivityThread.java:3976)
                                                                            at android.app.ActivityThread.-wrap5(Unknown Source:0)
                                                                            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2109)
                                                                            at android.os.Handler.dispatchMessage(Handler.java:109)
                                                                            at android.os.Looper.loop(Looper.java:166)
                                                                            at android.app.ActivityThread.main(ActivityThread.java:7555)
                                                                            at java.lang.reflect.Method.invoke(Native Method)
                                                                            at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
                                                                            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)
                                                                         Caused by: java.lang.IllegalArgumentException: Component class cn.jpush.android.service.PushReceiver does not exist in com.yaoliutong.nmagent
                                                                            at android.os.Parcel.readException(Parcel.java:2012)
                                                                            at android.os.Parcel.readException(Parcel.java:1954)
                                                                            at android.content.pm.IPackageManager$Stub$Proxy.setComponentEnabledSetting(IPackageManager.java:4740)
                                                                            at android.app.ApplicationPackageManager.setComponentEnabledSetting(ApplicationPackageManager.java:2416)
                                                                            at cn.jpush.android.service.ServiceInterface.b(Unknown Source:27)
                                                                            at cn.jpush.android.service.PushService.onCreate(Unknown Source:46)
                                                                            at android.app.ActivityThread.handleCreateService(ActivityThread.java:3956)
                                                                            at android.app.ActivityThread.-wrap5(Unknown Source:0) 
                                                                            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2109) 
                                                                            at android.os.Handler.dispatchMessage(Handler.java:109) 
                                                                            at android.os.Looper.loop(Looper.java:166) 
                                                                            at android.app.ActivityThread.main(ActivityThread.java:7555) 
                                                                            at java.lang.reflect.Method.invoke(Native Method) 
                                                                            at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469) 
                                                                            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963) 
11-06 09:35:33.230 18561-18561/com.yaoliutong.nmagent E/MicroMsg.SDK.WXApiImplV10: register app failed for wechat app signature check failed
11-06 09:35:33.231 18561-18575/com.yaoliutong.nmagent E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
11-06 09:35:33.232 18561-18561/com.yaoliutong.nmagent E/Minikin: Could not get cmap table size!
11-06 09:35:33.360 18561-18561/com.yaoliutong.nmagent E/AndroidRuntime: FATAL EXCEPTION: main
                                                                        Process: com.yaoliutong.nmagent, PID: 18561
                                                                        java.lang.RuntimeException: Unable to create service cn.jpush.android.service.PushService: java.lang.IllegalArgumentException: Component class cn.jpush.android.service.PushReceiver does not exist in com.yaoliutong.nmagent
                                                                            at android.app.ActivityThread.handleCreateService(ActivityThread.java:3976)
                                                                            at android.app.ActivityThread.-wrap5(Unknown Source:0)
                                                                            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2109)
                                                                            at android.os.Handler.dispatchMessage(Handler.java:109)
                                                                            at android.os.Looper.loop(Looper.java:166)
                                                                            at android.app.ActivityThread.main(ActivityThread.java:7555)
                                                                            at java.lang.reflect.Method.invoke(Native Method)
                                                                            at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
                                                                            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)
                                                                         Caused by: java.lang.IllegalArgumentException: Component class cn.jpush.android.service.PushReceiver does not exist in com.yaoliutong.nmagent
                                                                            at android.os.Parcel.readException(Parcel.java:2012)
                                                                            at android.os.Parcel.readException(Parcel.java:1954)
                                                                            at android.content.pm.IPackageManager$Stub$Proxy.setComponentEnabledSetting(IPackageManager.java:4740)
                                                                            at android.app.ApplicationPackageManager.setComponentEnabledSetting(ApplicationPackageManager.java:2416)
                                                                            at cn.jpush.android.service.ServiceInterface.b(Unknown Source:27)
                                                                            at cn.jpush.android.service.PushService.onCreate(Unknown Source:46)
                                                                            at android.app.ActivityThread.handleCreateService(ActivityThread.java:3956)
                                                                            at android.app.ActivityThread.-wrap5(Unknown Source:0) 
                                                                            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2109) 
                                                                            at android.os.Handler.dispatchMessage(Handler.java:109) 
                                                                            at android.os.Looper.loop(Looper.java:166) 
                                                                            at android.app.ActivityThread.main(ActivityThread.java:7555) 
                                                                            at java.lang.reflect.Method.invoke(Native Method) 
                                                                            at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469) 
                                                                            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963) 
11-06 09:35:40.336 18792-18792/com.yaoliutong.nmagent E/MicroMsg.SDK.WXApiImplV10: register app failed for wechat app signature check failed
11-06 09:35:40.337 18792-18792/com.yaoliutong.nmagent E/Minikin: Could not get cmap table size!
11-06 09:35:40.340 18792-18806/com.yaoliutong.nmagent E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
11-06 09:35:40.502 18792-18792/com.yaoliutong.nmagent E/AndroidRuntime: FATAL EXCEPTION: main
                                                                        Process: com.yaoliutong.nmagent, PID: 18792
                                                                        java.lang.RuntimeException: Unable to create service cn.jpush.android.service.PushService: java.lang.IllegalArgumentException: Component class cn.jpush.android.service.PushReceiver does not exist in com.yaoliutong.nmagent
                                                                            at android.app.ActivityThread.handleCreateService(ActivityThread.java:3976)
                                                                            at android.app.ActivityThread.-wrap5(Unknown Source:0)
                                                                            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2109)
                                                                            at android.os.Handler.dispatchMessage(Handler.java:109)
                                                                            at android.os.Looper.loop(Looper.java:166)
                                                                            at android.app.ActivityThread.main(ActivityThread.java:7555)
                                                                            at java.lang.reflect.Method.invoke(Native Method)
                                                                            at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
                                                                            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)
                                                                         Caused by: java.lang.IllegalArgumentException: Component class cn.jpush.android.service.PushReceiver does not exist in com.yaoliutong.nmagent
                                                                            at android.os.Parcel.readException(Parcel.java:2012)
                                                                            at android.os.Parcel.readException(Parcel.java:1954)
                                                                            at android.content.pm.IPackageManager$Stub$Proxy.setComponentEnabledSetting(IPackageManager.java:4740)
                                                                            at android.app.ApplicationPackageManager.setComponentEnabledSetting(ApplicationPackageManager.java:2416)
                                                                            at cn.jpush.android.service.ServiceInterface.b(Unknown Source:27)
                                                                            at cn.jpush.android.service.PushService.onCreate(Unknown Source:46)
                                                                            at android.app.ActivityThread.handleCreateService(ActivityThread.java:3956)
                                                                            at android.app.ActivityThread.-wrap5(Unknown Source:0) 
                                                                            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2109) 
                                                                            at android.os.Handler.dispatchMessage(Handler.java:109) 
                                                                            at android.os.Looper.loop(Looper.java:166) 
                                                                            at android.app.ActivityThread.main(ActivityThread.java:7555) 
                                                                            at java.lang.reflect.Method.invoke(Native Method) 
                                                                            at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469) 
                                                                            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963) 
11-06 09:35:42.434 18954-18954/com.yaoliutong.nmagent E/MicroMsg.SDK.WXApiImplV10: register app failed for wechat app signature check failed
11-06 09:35:42.435 18954-18973/com.yaoliutong.nmagent E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
11-06 09:35:42.435 18954-18954/com.yaoliutong.nmagent E/Minikin: Could not get cmap table size!

#2

1、SDK 版本多少?

2、安装我们的 demo 在你的手机上是否正常?

3、提供运行后完整的错误信息过来


(Finder) #3

SDK是jpush-android-2.0.5.jar 没有安装官方的demo测试 信息错误就是上面那些,页面是一直在启动页来回重启,错误信息也是重复的


#4

请升级 SDK 后再测试
现在可以下载到的最新版本是 3.1.7 的,只是文档还没更新,可先使用 3.1.6
https://docs.jiguang.cn/jpush/updates/#jpush-android-sdk-v316
https://docs.jiguang.cn/jpush/client/Android/android_guide/
旧版本的某些问题,不兼容等都是在新版本处理过的


(Finder) #5

更新以后没问题了,但是推送信息收不到了,ContentProvider 新增的这个组件是放到哪里的


#6

具体是哪一个组件?你现在是报了什么错误?

根据 demo 和 文档里面的 Androidmanifest 做配置即可


(Finder) #7

现在没报错,就是收不到信息,我看文档写着3.0以后增加了ContentProvider 这个组件,是什么意思


(Finder) #8

老用户升级,请注意 3.0.9 版本之后新增了 ContentProvider 组件。这句话是什么


#9

你现在收不到消息,查看集成成功了没有,日志,取到了 registrationID没有

排查