项目导入其他依赖,极光推送报错导致项目崩溃


(星尘) #1

项目正常运行的状态下新加了一个依赖:‘cn.bingoogolapple:bga-qrcode-zbar:1.2.1’,运行时会报错误,错误日志如下。如果去掉依赖,就一切正常。我是用的最新版本的极光推送,三款手机都会出现这种问题。在没有集成极光推送的项目中添加此依赖,一切正常。请您们能够提供解决方案。

03-01 09:09:19.070 18615-18615/com.haoyuan.xiaochen.zbikestation D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation D/JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.1.9, buildId:172
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation 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__)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation E/JIGUANG-JCore: [JCoreGlobal] Get sdk version fail![获取sdk版本失败!]
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation 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__)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at cn.jiguang.service.Protocol.GetSdkVersion(Native Method)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at cn.jiguang.d.a.a(Unknown Source)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at cn.jiguang.d.a.a(Unknown Source)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at cn.jiguang.api.JCoreInterface.init(Unknown Source)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at cn.jiguang.api.JCoreInterface.getRegistrationID(Unknown Source)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at cn.jpush.android.api.JPushInterface.getRegistrationID(SourceFile:226)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at com.haoyuan.xiaochen.zbikestation.ui.activity.MainActivity.initDeviceMessage(MainActivity.java:761)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at com.haoyuan.xiaochen.zbikestation.ui.activity.MainActivity.onCreate(MainActivity.java:346)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at android.app.Activity.performCreate(Activity.java:6288)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2758)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at android.app.ActivityThread.access$900(ActivityThread.java:177)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at android.os.Looper.loop(Looper.java:145)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5942)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at java.lang.reflect.Method.invoke(Method.java:372)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
03-01 09:09:19.090 18615-18615/com.haoyuan.xiaochen.zbikestation E/JIGUANG-JCore: [JCoreGlobal] JCore .so file do not match JCore .jar file in the project, Failed to init JCore
03-01 09:09:19.100 18615-18615/com.haoyuan.xiaochen.zbikestation W/JIGUANG-JCore: [JCoreInterface] JCore init failed
03-01 09:09:19.100 18615-18615/com.haoyuan.xiaochen.zbikestation V/8888: 极光推送ID:
03-01 09:09:19.100 18615-18615/com.haoyuan.xiaochen.zbikestation V/读取缓存信息: 18310610317===123456+++844548100627665040
03-01 09:09:19.130 18615-18615/com.haoyuan.xiaochen.zbikestation D/Activity: performCreate Call secproduct feature valuefalse
03-01 09:09:19.130 18615-18615/com.haoyuan.xiaochen.zbikestation D/Activity: performCreate Call debug elastic valuetrue
03-01 09:09:19.130 18615-18615/com.haoyuan.xiaochen.zbikestation V/9999: onstart
03-01 09:09:19.140 18615-18732/com.haoyuan.xiaochen.zbikestation A/libc: Fatal signal 7 (SIGBUS), code 2, fault addr 0xb456c230 in tid 18732 (Thread-3929)
03-01 09:09:19.140 18615-18615/com.haoyuan.xiaochen.zbikestation D/SensorManager: registerListener :: 1937338482, Orientation Sensor, 66667, 0,  
03-01 09:09:19.990 18615-18732/com.haoyuan.xiaochen.zbikestation A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xe8cc in tid 18732 (Thread-3929)

#2

1、请说明集成的 SDK 的具体版本号,而非最新版本这样模糊的说明

2、三款手机有问题的意思是 还有其他的手机测试没有问题吗?

3、提供这三款手机的机型和系统

4、[quote=“18310610317, post:1, topic:25050”]
新加了一个依赖:‘cn.bingoogolapple:bga-qrcode-zbar:1.2.1’,
[/quote]

这个第三方库是用来做什么的,提供一下该项目的官网或者GitHub等我们可以了解、下载该项目的链接


(星尘) #3

集成的是Android3.1.1版本的,之前集成3.1.0的也会出现。我就用了三款测试机测试,分别为SM-N9006、Android5.0的;HUAWEI MT7-TL10、Android6.0的;BLA-AL00、Android8.0的。


(星尘) #4

第三库github地址:https://github.com/bingoogolapple/BGAQRCode-Android


#5

你好,你通过什么方式来集成jcenter还是手动集成,需要注意你集成这个库包含的so和JPush的so是否匹配,可将你的so目录展开截图发过来看一下


(星尘) #6

不是手动集成的,就是在AS的gradle中加了依赖


#7

参考一下这里的冲突的解决方案看看

看看你的 so 目录