华为手机一直连接不上

android
标签: #<Tag:0x00007fb84da74cb8>

(Abigale) #1


#2

根据这个排查


(Abigale) #3

我添加的文件都添加了,


#4

1、检查 so 文件是否复制错误,一个文件夹的对应一个文件夹的

2、说明你这个手机的机型和系统

3、提供更完整的客户端日志信息


(Abigale) #5

05-14 13:37:08.501 9372-9372/com.unitrust.tsa E/art: No implementation found for int cn.jiguang.service.Protocol.GetSdkVersion() (tried Java_cn_jiguang_service_Protocol_GetSdkVersion and Java_cn_jiguang_service_Protocol_GetSdkVersion__)
05-14 13:37:08.501 9372-9372/com.unitrust.tsa E/JIGUANG-JCore: [JCoreGlobal] Get sdk version fail![获取sdk版本失败!]

手机机型华为BLN-AL10

so文件检查都没有问题


#6

请从初始化开始提供日志


(Abigale) #7
05-14 13:41:29.545 9372-9372/com.unitrust.tsa W/JIGUANG-JCore: [AndroidUtil] AndroidManifest.xml missing required service: cn.jpush.android.service.DaemonService
05-14 13:41:29.583 9372-9372/com.unitrust.tsa E/art: No implementation found for int cn.jiguang.service.Protocol.GetSdkVersion() (tried Java_cn_jiguang_service_Protocol_GetSdkVersion and Java_cn_jiguang_service_Protocol_GetSdkVersion__)
05-14 13:41:29.583 9372-9372/com.unitrust.tsa E/JIGUANG-JCore: [JCoreGlobal] Get sdk version fail![获取sdk版本失败!]
05-14 13:41:29.583 9372-9372/com.unitrust.tsa W/System.err: java.lang.UnsatisfiedLinkError: No implementation found for int cn.jiguang.service.Protocol.GetSdkVersion() (tried Java_cn_jiguang_service_Protocol_GetSdkVersion and Java_cn_jiguang_service_Protocol_GetSdkVersion__)
05-14 13:41:29.583 9372-9372/com.unitrust.tsa W/System.err:     at cn.jiguang.service.Protocol.GetSdkVersion(Native Method)
05-14 13:41:29.583 9372-9372/com.unitrust.tsa W/System.err:     at cn.jiguang.d.a.a(Unknown Source)
05-14 13:41:29.583 9372-9372/com.unitrust.tsa W/System.err:     at cn.jiguang.d.a.a(Unknown Source)
05-14 13:41:29.583 9372-9372/com.unitrust.tsa W/System.err:     at cn.jiguang.api.JCoreInterface.init(Unknown Source)
05-14 13:41:29.583 9372-9372/com.unitrust.tsa E/JIGUANG-JCore: [JCoreGlobal] JCore .so file do not match JCore .jar file in the project, Failed to init JCore
05-14 13:41:29.584 9372-9372/com.unitrust.tsa W/JIGUANG-JCore: [JCoreInterface] JCore init failed

#8

你在极光官网下载 demo 安装到这个手机上是否有问题?

在官网-应用信息-推送设置-Android-扫码下载,记得安装 demo 前将同样包名的自己的 App 卸载掉

你的 App 是只在这个手机上有问题?你没有使用手动集成和自动集成两个一起操作吧?


(Abigale) #9

我是手动集成没有自动集成,我没有运行demo,我运行demo试一下。


(Abigale) #10

运行demo没有问题,但是我直接集成到项目就不行,我对比jar包so文件都没有问题,


#11

2、libs 每个目录下的 so 文件名字一样,但是内容是不一样的,不能随意复制。

3、检查是否还有其他地方放了so文件

这两点,你确定你的 so 是一个文件夹一个文件的复制的吧?一个个对应复制 demo 里面的 so 过去看看

其他的文件夹有没有放置多余的 so ?


(Abigale) #12

我确定,我是一个一个文件复制的,对应的


#13

你其他的手机上安装这个自己的APP有问题吗


(Abigale) #16
05-14 14:31:42.105 6980-6980/com.unitrust.tsa D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.1.2, buildId:401
05-14 14:31:42.137 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [JCoreGlobal] metadata: appKey - 819ed0a9662e89dd261b5cee
05-14 14:31:42.137 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [JCoreGlobal] metadata: channel - developer-default
05-14 14:31:42.148 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [ServiceHelper] We found the appKey is changed or register appkey is empty. Will re-register.
05-14 14:31:42.165 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
05-14 14:31:42.187 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
05-14 14:31:42.197 6980-6980/com.unitrust.tsa E/JIGUANG-JCore: [AndroidUtil] The permissoin is required - android.permission.WRITE_SETTINGS
05-14 14:31:42.197 6980-6980/com.unitrust.tsa W/JIGUANG-JCore: [JCoreInterface] JCore init failed
05-14 14:31:42.414 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [ServiceHelper] We found the appKey is changed or register appkey is empty. Will re-register.
05-14 14:31:42.415 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
05-14 14:31:42.420 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
05-14 14:31:42.431 6980-6980/com.unitrust.tsa E/JIGUANG-JCore: [AndroidUtil] The permissoin is required - android.permission.WRITE_SETTINGS
05-14 14:31:42.431 6980-6980/com.unitrust.tsa W/JIGUANG-JCore: [JCoreInterface] JCore init failed
05-14 14:31:42.433 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [ServiceHelper] We found the appKey is changed or register appkey is empty. Will re-register.
05-14 14:31:42.435 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
05-14 14:31:42.441 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
05-14 14:31:42.452 6980-6980/com.unitrust.tsa E/JIGUANG-JCore: [AndroidUtil] The permissoin is required - android.permission.WRITE_SETTINGS
05-14 14:31:42.452 6980-6980/com.unitrust.tsa W/JIGUANG-JCore: [JCoreInterface] JCore init failed
05-14 14:31:45.443 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [ServiceHelper] We found the appKey is changed or register appkey is empty. Will re-register.
05-14 14:31:45.457 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
05-14 14:31:45.461 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
05-14 14:31:45.469 6980-6980/com.unitrust.tsa E/JIGUANG-JCore: [AndroidUtil] The permissoin is required - android.permission.WRITE_SETTINGS
05-14 14:31:45.469 6980-6980/com.unitrust.tsa W/JIGUANG-JCore: [JCoreInterface] JCore init failed
05-14 14:31:48.358 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [ServiceHelper] We found the appKey is changed or register appkey is empty. Will re-register.
05-14 14:31:48.364 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
05-14 14:31:48.369 6980-6980/com.unitrust.tsa D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
05-14 14:31:48.378 6980-6980/com.unitrust.tsa E/JIGUANG-JCore: [AndroidUtil] The permissoin is required - android.permission.WRITE_SETTINGS
05-14 14:31:48.378 6980-6980/com.unitrust.tsa W/JIGUANG-JCore: [JCoreInterface] JCore init failed

机型vivo v3m


#17

这个报错是说权限没写


(Abigale) #18
05-14 14:35:03.273 7670-7670/com.unitrust.tsa D/JIGUANG-JCore: [ServiceHelper] We found the appKey is changed or register appkey is empty. Will re-register.
05-14 14:35:03.283 7670-7670/com.unitrust.tsa D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
05-14 14:35:03.287 7670-7670/com.unitrust.tsa D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
05-14 14:35:03.297 7670-7670/com.unitrust.tsa D/JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.2.0, buildId:181
05-14 14:35:03.298 7670-7670/com.unitrust.tsa E/art: No implementation found for int cn.jiguang.service.Protocol.GetSdkVersion() (tried Java_cn_jiguang_service_Protocol_GetSdkVersion and Java_cn_jiguang_service_Protocol_GetSdkVersion__)
05-14 14:35:03.298 7670-7670/com.unitrust.tsa E/JIGUANG-JCore: [JCoreGlobal] Get sdk version fail![获取sdk版本失败!]
05-14 14:35:03.298 7670-7670/com.unitrust.tsa W/System.err: java.lang.UnsatisfiedLinkError: No implementation found for int cn.jiguang.service.Protocol.GetSdkVersion() (tried Java_cn_jiguang_service_Protocol_GetSdkVersion and Java_cn_jiguang_service_Protocol_GetSdkVersion__)
05-14 14:35:03.299 7670-7670/com.unitrust.tsa W/System.err:     at cn.jiguang.service.Protocol.GetSdkVersion(Native Method)
05-14 14:35:03.299 7670-7670/com.unitrust.tsa W/System.err:     at cn.jiguang.d.a.a(Unknown Source)
05-14 14:35:03.299 7670-7670/com.unitrust.tsa W/System.err:     at cn.jiguang.d.a.a(Unknown Source)
05-14 14:35:03.299 7670-7670/com.unitrust.tsa W/System.err:     at cn.jiguang.api.JCoreInterface.init(Unknown Source)
05-14 14:35:03.299 7670-7670/com.unitrust.tsa W/System.err:     at cn.jiguang.d.d.j.b(Unknown Source)
05-14 14:35:03.299 7670-7670/com.unitrust.tsa W/System.err:     at cn.jiguang.d.d.q.b(Unknown Source)
05-14 14:35:03.299 7670-7670/com.unitrust.tsa W/System.err:     at cn.jiguang.a.a.d.a.onActivityPaused(Unknown Source)
05-14 14:35:03.300 7670-7670/com.unitrust.tsa E/JIGUANG-JCore: [JCoreGlobal] JCore .so file do not match JCore .jar file in the project, Failed to init JCore
05-14 14:35:03.300 7670-7670/com.unitrust.tsa W/JIGUANG-JCore: [JCoreInterface] JCore init failed

权限加上了又开始报同样的错误


#19

那就还是 jar 和 so 的问题,demo 在你的手机上没有问题,自己的项目在多个手机上都报错,就还是配置的问题。

你重新配一下看看,clean 工程。


(Abigale) #20

我都重新操作还是不行呀,报上面错误就是so和jar问题,排除配置文件问题是吗?


#21

你这个配了没有


(Abigale) #22

我配置了,但是我这闪退,也没有看到报错