极光推送安卓闪退 exClass=java.lang.UnsatisfiedLinkError


(许叶) #1

03-02 09:41:30.283 29333-29333/com.someone.boyibo D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.1.1, buildId:396 03-02 09:41:30.333 29333-29333/com.someone.boyibo D/JIGUANG-JCore: [JCoreGlobal] metadata: appKey - dde5b7c8d7c9939eda60c5ca 03-02 09:41:30.333 29333-29333/com.someone.boyibo D/JIGUANG-JCore: [JCoreGlobal] metadata: channel - developer-default 03-02 09:41:30.343 29333-29333/com.someone.boyibo D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest 03-02 09:41:30.393 29333-29333/com.someone.boyibo D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled 03-02 09:41:30.463 29333-29333/com.someone.boyibo D/JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.1.9, buildId:172 03-02 09:41:30.563 29333-29333/com.someone.boyibo D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest 03-02 09:41:30.603 29333-29333/com.someone.boyibo I/JIGUANG-JPush: [PluginPlatformsInterface] whichPlatform - 0 03-02 09:41:30.613 29333-29333/com.someone.boyibo I/JIGUANG-JPush: [PluginPlatformsInterface] isIntegrateFCM -false 03-02 09:41:30.753 29333-29333/com.someone.boyibo D/onLoadNativeLibraries:: cocos2dlua 03-02 09:41:30.753 29333-29333/com.someone.boyibo D/AndroidRuntime: Shutting down VM 03-02 09:41:31.043 29333-29667/com.someone.boyibo D/JIGUANG-JCore: [HttpHelper] status code:200 03-02 09:41:31.043 29333-29333/com.someone.boyibo E/AndroidRuntime: FATAL EXCEPTION: main Process: com.someone.boyibo, PID: 29333 java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-wechat-sdk-android-with-mta-1.0.2_7b23a487d0c002b52c52c2ff113f0b521329f4a5-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-support-annotations-25.0.0_70ba9baafed63f2124535704ab436311a1a8139a-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-rxjava-1.2.1_4b843b456b163f0bc2fd798125488aaaa9829eac-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-qiniu-android-sdk-7.3.10_061ce3c78e41f1428d7cc1cefe56e19068259650-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-okio-1.13.0_f1ef2c4168fe8a0f48ae476ed568a5ae2e5a80a7-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-okhttp-3.8.1_263ca7a541ee8b2675c608ed4e5ecd8ca7a9f327-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-me.shaohui.advancedluban-library-1.3.2_c96390960256d1b7b3e9a7b9af8446ead4af8db9-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-jpush-android-3.1.1_e5d91a20140d522d80e4efddc1f754bb89f8f275-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-jcore-android-1.1.9_ac760573ecf95e678e8b24621bb8c3613d63c753-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-io.reactivex-rxandroid-1.2.1_3012d88ae33eaf7b31408244be949bbbecc3fc11-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-internal_impl-25.0.0_b30165818f32d1e20288dd065bbd0d16f8a4a66a-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-internal_impl-25.0.0_845a4a017bd25467bd9e7923c87bdcf1c6cd751d-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-internal_impl-25.0.0_46fe6d5493b820ed9102ff4317d79527f007ab5d-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-internal_impl-25.0.0_15f251a43b2a7c174d694932fd99df2b23958f69-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-internal_impl-25.0.0_05ce52c57e38da09e3826e448e88a3e40309999d-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-httpclient-4.4.1.1_0be8facefb354ae9acc48ffe72d2a459484a5d81-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-happy-dns-0.2.13_6083de240bfb8adad0574f59d88ab266755c32d8-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-glide-3.6.0_4402f30b3669a7111a04dcc313b981a0ec8b5daa-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-com.soundcloud.android.crop-lib_crop-1.0.0_8c79dbe9e382ea457b2a4e63888da178b5323b93-classes.dex", dex file "/data/data/com.someone.boyibo/files/instant-run/dex/slice-com.jph.takephoto-takephoto_library-4.0.3_9b42f9293af700ce1b4d4da1acf1c5aef20874be-classes.dex", dex file "/data/data/com.someone.boyibo/files/inst 03-02 09:41:31.053 29333-29333/com.someone.boyibo D/Error: ERR: exClass=java.lang.UnsatisfiedLinkError

以上是log日志 进入程序就闪退。jcenter集成 请问是什么原因呢。

        ndk {
            //选择要添加的对应cpu类型的.so库。
            abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a'
            // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
        }

        manifestPlaceholders = [
                JPUSH_PKGNAME : "XXXX",
                JPUSH_APPKEY : "XXXXX", //JPush上注册的包名对应的appkey.
                JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
        ]

这是build.gradle的配置 XXX已经正取填写


#2

你的错误信息里面没有jiguang相关的信息,如果与极光有关,则应该有 jpush 等字眼,现在error里面报错的文件非极光的。

参考可能冲突的方案排查处理

并尝试在网上搜索这个报错
java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList

参考可能的原因和方案

可以考虑删除后重新集成。

如果日志里面还有 获取 SDK 失败的日志,参考这个解决:


(许叶) #3

查了一上午,依然没有找到原因。 我尝试重新集成 , 发现只在app 的 build.gradle 添加

  compile 'cn.jiguang.sdk:jpush:3.1.1' 
    compile 'cn.jiguang.sdk:jcore:1.1.9'

     ndk {
            //选择要添加的对应cpu类型的.so库。
            abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a'
            // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
        }
//
        manifestPlaceholders = [
                JPUSH_PKGNAME : "com.someone.boyibo",
                JPUSH_APPKEY : "XXXXXX", //JPush上注册的包名对应的appkey.
                JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
        ]

这些代码就已经会导致闪退了。 后来尝试手动配置添加jar和so文件 还是不能解决。


(许叶) #4

已解决 修改一个 Android studio 配置。

http://blog.csdn.net/sinat_31598337/article/details/51418608