环信Bug:是环信Easeui库和Fresco发生了什么事呢?结论:不是Bug,附上个人暂时的解决方案。
前言:今天由于需要重构公司的一个项目,然后公司一直都是使用Fresco来作为图片加载,等我框架都差不多搭好的时候,前面运行的时候都没有问题,但我导入Fresco的时候,再次运行时,程序就奔溃了。然后我就写了一个DEMO来检验一下,然而程序毫无意外的奔溃了。但我不知道这个是否环信的Bug,所以就发个帖子让大家来讨论一下,也希望得到环信攻城狮的回复。
正常运行时,图片截图汇总:
一旦我导入Fresco时,程序就奔溃了,图片截图汇总:
日志如下:
11-08 10:35:35.132 19840-19840/? I/art: Not late-enabling -Xcheck:jni (already on)
11-08 10:35:35.171 19840-19840/com.zhanyun.yunshop I/InstantRun: Instant Run Runtime started. Android package is com.zhanyun.yunshop, real application class is com.zhanyun.yunshop.App.
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-support-annotations-24.2.1_90ebcfb91ec7575bb64e576e78ff292f9de5b514-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-org.apache.http.legacy_4113e0196176bd090f5198dc878dc1a84de93a30-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_cd3074adf4becf90dae7433bed2774beb3c7eb60-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_9dd1fa8e2c4be58194667f04a0660b1467d7b856-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_7f6e4be6cdc814629dd6cd2f5b61fa744a737812-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_59564641cea2748dd06c48d2f9b47f5ca5d4b683-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_42ce643e71697b19e5e07a95aed33e74e122c53b-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-hyphenatechat_3.2.0_0757a395638c17f0984873072255f0f84ddfc79f-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-google-play-services_987abc0f66a13a4a6cb60e980ef637b8a4eca6b7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-glide-3.6.1_3eeb79717f4fcf17d0325cd728a09f832133091c-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-base-0.14.1_de47fa51456a5d62dbbcb6f5c7749c8e400f20a8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-0.14.1_c0facf22e1e98b21e2b7933dfea0b1f5f0c662ca-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fresco-0.14.1_5cf7f81877d92ae6de730a18f8cf1addf2891798-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fbcore-0.14.1_a4d879851dd679203af1d94881e48a8055310ef4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-drawee-0.14.1_ffd568249af9c8ba8aa2b392d67091049420ce57-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-vector-drawable-24.2.1_c418f10a3afb13e187d46f3ce64607ca12ab4c18-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-v4-24.2.1_9f13743063890427d291e7b491a24a75bd888307-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-media-compat-24.2.1_909bb8825f664906001f4de0bb100660fd3d2256-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-fragment-24.2.1_5cdf81c4aa86fdec73518c7462f0c27880b2425a-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-core-
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at java.lang.Runtime.loadLibrary(Runtime.java:367)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at java.lang.System.loadLibrary(System.java:1076)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.hyphenate.chat.EMClient.loadLibrary(Unknown Source)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.hyphenate.chat.EMClient.getInstance(Unknown Source)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.zhanyun.yunshop.App.onCreate(App.java:21)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:370)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread.-wrap1(ActivityThread.java)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.os.Looper.loop(Looper.java:148)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5417)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at java.lang.reflect.Method.invoke(Native Method)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-support-annotations-24.2.1_90ebcfb91ec7575bb64e576e78ff292f9de5b514-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-org.apache.http.legacy_4113e0196176bd090f5198dc878dc1a84de93a30-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_cd3074adf4becf90dae7433bed2774beb3c7eb60-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_9dd1fa8e2c4be58194667f04a0660b1467d7b856-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_7f6e4be6cdc814629dd6cd2f5b61fa744a737812-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_59564641cea2748dd06c48d2f9b47f5ca5d4b683-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_42ce643e71697b19e5e07a95aed33e74e122c53b-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-hyphenatechat_3.2.0_0757a395638c17f0984873072255f0f84ddfc79f-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-google-play-services_987abc0f66a13a4a6cb60e980ef637b8a4eca6b7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-glide-3.6.1_3eeb79717f4fcf17d0325cd728a09f832133091c-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-base-0.14.1_de47fa51456a5d62dbbcb6f5c7749c8e400f20a8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-0.14.1_c0facf22e1e98b21e2b7933dfea0b1f5f0c662ca-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fresco-0.14.1_5cf7f81877d92ae6de730a18f8cf1addf2891798-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fbcore-0.14.1_a4d879851dd679203af1d94881e48a8055310ef4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-drawee-0.14.1_ffd568249af9c8ba8aa2b392d67091049420ce57-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-vector-drawable-24.2.1_c418f10a3afb13e187d46f3ce64607ca12ab4c18-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-v4-24.2.1_9f13743063890427d291e7b491a24a75bd888307-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-media-compat-24.2.1_909bb8825f664906001f4de0bb100660fd3d2256-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-fragment-24.2.1_5cdf81c4aa86fdec73518c7462f0c27880b2425a-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-core-
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at java.lang.Runtime.loadLibrary(Runtime.java:367)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at java.lang.System.loadLibrary(System.java:1076)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.hyphenate.chat.EMClient.loadLibrary(Unknown Source)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.hyphenate.chat.EMClient.getInstance(Unknown Source)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.zhanyun.yunshop.App.onCreate(App.java:21)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:370)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread.-wrap1(ActivityThread.java)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.os.Looper.loop(Looper.java:148)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5417)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at java.lang.reflect.Method.invoke(Native Method)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop D/AndroidRuntime: Shutting down VM
--------- beginning of crash
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.zhanyun.yunshop, PID: 19840
java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-support-annotations-24.2.1_90ebcfb91ec7575bb64e576e78ff292f9de5b514-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-org.apache.http.legacy_4113e0196176bd090f5198dc878dc1a84de93a30-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_cd3074adf4becf90dae7433bed2774beb3c7eb60-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_9dd1fa8e2c4be58194667f04a0660b1467d7b856-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_7f6e4be6cdc814629dd6cd2f5b61fa744a737812-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_59564641cea2748dd06c48d2f9b47f5ca5d4b683-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_42ce643e71697b19e5e07a95aed33e74e122c53b-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-hyphenatechat_3.2.0_0757a395638c17f0984873072255f0f84ddfc79f-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-google-play-services_987abc0f66a13a4a6cb60e980ef637b8a4eca6b7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-glide-3.6.1_3eeb79717f4fcf17d0325cd728a09f832133091c-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-base-0.14.1_de47fa51456a5d62dbbcb6f5c7749c8e400f20a8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-0.14.1_c0facf22e1e98b21e2b7933dfea0b1f5f0c662ca-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fresco-0.14.1_5cf7f81877d92ae6de730a18f8cf1addf2891798-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fbcore-0.14.1_a4d879851dd679203af1d94881e48a8055310ef4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-drawee-0.14.1_ffd568249af9c8ba8aa2b392d67091049420ce57-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-vector-drawable-24.2.1_c418f10a3afb13e187d46f3ce64607ca12ab4c18-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-v4-24.2.1_9f13743063890427d291e7b491a24a75bd888307-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-media-compat-24.2.1_909bb8825f664906001f4de0bb100660fd3d2256-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-fragment-24.2.1_5cdf81c4aa86fdec73518c7462f0c27880b2425a-classes.dex", dex file "/data/data/com.zhanyun.yu
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: exClass=java.lang.UnsatisfiedLinkError
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: exMsg=com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-support-annotations-24.2.1_90ebcfb91ec7575bb64e576e78ff292f9de5b514-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-org.apache.http.legacy_4113e0196176bd090f5198dc878dc1a84de93a30-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_cd3074adf4becf90dae7433bed2774beb3c7eb60-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_9dd1fa8e2c4be58194667f04a0660b1467d7b856-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_7f6e4be6cdc814629dd6cd2f5b61fa744a737812-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_59564641cea2748dd06c48d2f9b47f5ca5d4b683-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_42ce643e71697b19e5e07a95aed33e74e122c53b-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-hyphenatechat_3.2.0_0757a395638c17f0984873072255f0f84ddfc79f-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-google-play-services_987abc0f66a13a4a6cb60e980ef637b8a4eca6b7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-glide-3.6.1_3eeb79717f4fcf17d0325cd728a09f832133091c-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-base-0.14.1_de47fa51456a5d62dbbcb6f5c7749c8e400f20a8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-0.14.1_c0facf22e1e98b21e2b7933dfea0b1f5f0c662ca-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fresco-0.14.1_5cf7f81877d92ae6de730a18f8cf1addf2891798-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fbcore-0.14.1_a4d879851dd679203af1d94881e48a8055310ef4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-drawee-0.14.1_ffd568249af9c8ba8aa2b392d67091049420ce57-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-vector-drawable-24.2.1_c418f10a3afb13e187d46f3ce64607ca12ab4c18-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-v4-24.2.1_9f13743063890427d291e7b491a24a75bd888307-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-media-compat-24.2.1_909bb8825f664906001f4de0bb100660fd3d2256-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-fragment-24.2.1_5cdf81c4aa86fdec73518c7462f0c27880b2425a-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-core-utils-24.2.1_85700dbe6f6f2
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: file=Runtime.java
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: class=java.lang.Runtime
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: method=loadLibrary line=367
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: stack=java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-support-annotations-24.2.1_90ebcfb91ec7575bb64e576e78ff292f9de5b514-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-org.apache.http.legacy_4113e0196176bd090f5198dc878dc1a84de93a30-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_cd3074adf4becf90dae7433bed2774beb3c7eb60-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_9dd1fa8e2c4be58194667f04a0660b1467d7b856-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_7f6e4be6cdc814629dd6cd2f5b61fa744a737812-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_59564641cea2748dd06c48d2f9b47f5ca5d4b683-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_42ce643e71697b19e5e07a95aed33e74e122c53b-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-hyphenatechat_3.2.0_0757a395638c17f0984873072255f0f84ddfc79f-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-google-play-services_987abc0f66a13a4a6cb60e980ef637b8a4eca6b7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-glide-3.6.1_3eeb79717f4fcf17d0325cd728a09f832133091c-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-base-0.14.1_de47fa51456a5d62dbbcb6f5c7749c8e400f20a8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-0.14.1_c0facf22e1e98b21e2b7933dfea0b1f5f0c662ca-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fresco-0.14.1_5cf7f81877d92ae6de730a18f8cf1addf2891798-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fbcore-0.14.1_a4d879851dd679203af1d94881e48a8055310ef4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-drawee-0.14.1_ffd568249af9c8ba8aa2b392d67091049420ce57-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-vector-drawable-24.2.1_c418f10a3afb13e187d46f3ce64607ca12ab4c18-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-v4-24.2.1_9f13743063890427d291e7b491a24a75bd888307-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-media-compat-24.2.1_909bb8825f664906001f4de0bb100660fd3d2256-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-fragment-24.2.1_5cdf81c4aa86fdec73518c7462f0c27880b2425a-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: TOTAL BYTES WRITTEN: 24452
本人通过尝试导入不同版本(包括最新版)Fresco和不同版本(包括最新版)Glide均不行,只要是两个库同时存在时,就是报如图所示的java.lang.UnsatisfiedLinkError错误,通过不断得尝试,得出了暂时的解决方案,把原项目的图片加载库Fresco,也换成EaseUI的Glide,就能正常运行了,不知道这个问题是环信Easeui库和Fresco发生了什么事呢?还是Glide和Fresco发生了什么事?也不知道是否算一个Bug,所以特发此贴,希望通过大家一起讨论得到最好的结果,或者环信的攻城狮给予回复,谢谢。
正常运行时,图片截图汇总:
一旦我导入Fresco时,程序就奔溃了,图片截图汇总:
日志如下:
11-08 10:35:35.132 19840-19840/? I/art: Not late-enabling -Xcheck:jni (already on)
11-08 10:35:35.171 19840-19840/com.zhanyun.yunshop I/InstantRun: Instant Run Runtime started. Android package is com.zhanyun.yunshop, real application class is com.zhanyun.yunshop.App.
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-support-annotations-24.2.1_90ebcfb91ec7575bb64e576e78ff292f9de5b514-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-org.apache.http.legacy_4113e0196176bd090f5198dc878dc1a84de93a30-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_cd3074adf4becf90dae7433bed2774beb3c7eb60-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_9dd1fa8e2c4be58194667f04a0660b1467d7b856-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_7f6e4be6cdc814629dd6cd2f5b61fa744a737812-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_59564641cea2748dd06c48d2f9b47f5ca5d4b683-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_42ce643e71697b19e5e07a95aed33e74e122c53b-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-hyphenatechat_3.2.0_0757a395638c17f0984873072255f0f84ddfc79f-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-google-play-services_987abc0f66a13a4a6cb60e980ef637b8a4eca6b7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-glide-3.6.1_3eeb79717f4fcf17d0325cd728a09f832133091c-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-base-0.14.1_de47fa51456a5d62dbbcb6f5c7749c8e400f20a8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-0.14.1_c0facf22e1e98b21e2b7933dfea0b1f5f0c662ca-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fresco-0.14.1_5cf7f81877d92ae6de730a18f8cf1addf2891798-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fbcore-0.14.1_a4d879851dd679203af1d94881e48a8055310ef4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-drawee-0.14.1_ffd568249af9c8ba8aa2b392d67091049420ce57-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-vector-drawable-24.2.1_c418f10a3afb13e187d46f3ce64607ca12ab4c18-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-v4-24.2.1_9f13743063890427d291e7b491a24a75bd888307-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-media-compat-24.2.1_909bb8825f664906001f4de0bb100660fd3d2256-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-fragment-24.2.1_5cdf81c4aa86fdec73518c7462f0c27880b2425a-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-core-
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at java.lang.Runtime.loadLibrary(Runtime.java:367)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at java.lang.System.loadLibrary(System.java:1076)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.hyphenate.chat.EMClient.loadLibrary(Unknown Source)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.hyphenate.chat.EMClient.getInstance(Unknown Source)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.zhanyun.yunshop.App.onCreate(App.java:21)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:370)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread.-wrap1(ActivityThread.java)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.os.Looper.loop(Looper.java:148)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5417)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at java.lang.reflect.Method.invoke(Native Method)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-support-annotations-24.2.1_90ebcfb91ec7575bb64e576e78ff292f9de5b514-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-org.apache.http.legacy_4113e0196176bd090f5198dc878dc1a84de93a30-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_cd3074adf4becf90dae7433bed2774beb3c7eb60-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_9dd1fa8e2c4be58194667f04a0660b1467d7b856-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_7f6e4be6cdc814629dd6cd2f5b61fa744a737812-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_59564641cea2748dd06c48d2f9b47f5ca5d4b683-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_42ce643e71697b19e5e07a95aed33e74e122c53b-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-hyphenatechat_3.2.0_0757a395638c17f0984873072255f0f84ddfc79f-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-google-play-services_987abc0f66a13a4a6cb60e980ef637b8a4eca6b7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-glide-3.6.1_3eeb79717f4fcf17d0325cd728a09f832133091c-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-base-0.14.1_de47fa51456a5d62dbbcb6f5c7749c8e400f20a8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-0.14.1_c0facf22e1e98b21e2b7933dfea0b1f5f0c662ca-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fresco-0.14.1_5cf7f81877d92ae6de730a18f8cf1addf2891798-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fbcore-0.14.1_a4d879851dd679203af1d94881e48a8055310ef4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-drawee-0.14.1_ffd568249af9c8ba8aa2b392d67091049420ce57-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-vector-drawable-24.2.1_c418f10a3afb13e187d46f3ce64607ca12ab4c18-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-v4-24.2.1_9f13743063890427d291e7b491a24a75bd888307-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-media-compat-24.2.1_909bb8825f664906001f4de0bb100660fd3d2256-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-fragment-24.2.1_5cdf81c4aa86fdec73518c7462f0c27880b2425a-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-core-
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at java.lang.Runtime.loadLibrary(Runtime.java:367)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at java.lang.System.loadLibrary(System.java:1076)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.hyphenate.chat.EMClient.loadLibrary(Unknown Source)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.hyphenate.chat.EMClient.getInstance(Unknown Source)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.zhanyun.yunshop.App.onCreate(App.java:21)
11-08 10:35:41.044 19840-19840/com.zhanyun.yunshop W/System.err: at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:370)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread.-wrap1(ActivityThread.java)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.os.Looper.loop(Looper.java:148)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5417)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at java.lang.reflect.Method.invoke(Native Method)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop D/AndroidRuntime: Shutting down VM
--------- beginning of crash
11-08 10:35:41.045 19840-19840/com.zhanyun.yunshop E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.zhanyun.yunshop, PID: 19840
java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-support-annotations-24.2.1_90ebcfb91ec7575bb64e576e78ff292f9de5b514-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-org.apache.http.legacy_4113e0196176bd090f5198dc878dc1a84de93a30-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_cd3074adf4becf90dae7433bed2774beb3c7eb60-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_9dd1fa8e2c4be58194667f04a0660b1467d7b856-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_7f6e4be6cdc814629dd6cd2f5b61fa744a737812-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_59564641cea2748dd06c48d2f9b47f5ca5d4b683-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_42ce643e71697b19e5e07a95aed33e74e122c53b-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-hyphenatechat_3.2.0_0757a395638c17f0984873072255f0f84ddfc79f-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-google-play-services_987abc0f66a13a4a6cb60e980ef637b8a4eca6b7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-glide-3.6.1_3eeb79717f4fcf17d0325cd728a09f832133091c-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-base-0.14.1_de47fa51456a5d62dbbcb6f5c7749c8e400f20a8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-0.14.1_c0facf22e1e98b21e2b7933dfea0b1f5f0c662ca-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fresco-0.14.1_5cf7f81877d92ae6de730a18f8cf1addf2891798-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fbcore-0.14.1_a4d879851dd679203af1d94881e48a8055310ef4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-drawee-0.14.1_ffd568249af9c8ba8aa2b392d67091049420ce57-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-vector-drawable-24.2.1_c418f10a3afb13e187d46f3ce64607ca12ab4c18-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-v4-24.2.1_9f13743063890427d291e7b491a24a75bd888307-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-media-compat-24.2.1_909bb8825f664906001f4de0bb100660fd3d2256-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-fragment-24.2.1_5cdf81c4aa86fdec73518c7462f0c27880b2425a-classes.dex", dex file "/data/data/com.zhanyun.yu
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: exClass=java.lang.UnsatisfiedLinkError
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: exMsg=com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-support-annotations-24.2.1_90ebcfb91ec7575bb64e576e78ff292f9de5b514-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-org.apache.http.legacy_4113e0196176bd090f5198dc878dc1a84de93a30-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_cd3074adf4becf90dae7433bed2774beb3c7eb60-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_9dd1fa8e2c4be58194667f04a0660b1467d7b856-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_7f6e4be6cdc814629dd6cd2f5b61fa744a737812-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_59564641cea2748dd06c48d2f9b47f5ca5d4b683-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_42ce643e71697b19e5e07a95aed33e74e122c53b-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-hyphenatechat_3.2.0_0757a395638c17f0984873072255f0f84ddfc79f-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-google-play-services_987abc0f66a13a4a6cb60e980ef637b8a4eca6b7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-glide-3.6.1_3eeb79717f4fcf17d0325cd728a09f832133091c-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-base-0.14.1_de47fa51456a5d62dbbcb6f5c7749c8e400f20a8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-0.14.1_c0facf22e1e98b21e2b7933dfea0b1f5f0c662ca-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fresco-0.14.1_5cf7f81877d92ae6de730a18f8cf1addf2891798-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fbcore-0.14.1_a4d879851dd679203af1d94881e48a8055310ef4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-drawee-0.14.1_ffd568249af9c8ba8aa2b392d67091049420ce57-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-vector-drawable-24.2.1_c418f10a3afb13e187d46f3ce64607ca12ab4c18-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-v4-24.2.1_9f13743063890427d291e7b491a24a75bd888307-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-media-compat-24.2.1_909bb8825f664906001f4de0bb100660fd3d2256-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-fragment-24.2.1_5cdf81c4aa86fdec73518c7462f0c27880b2425a-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-core-utils-24.2.1_85700dbe6f6f2
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: file=Runtime.java
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: class=java.lang.Runtime
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: method=loadLibrary line=367
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: stack=java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-support-annotations-24.2.1_90ebcfb91ec7575bb64e576e78ff292f9de5b514-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-org.apache.http.legacy_4113e0196176bd090f5198dc878dc1a84de93a30-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_cd3074adf4becf90dae7433bed2774beb3c7eb60-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_9dd1fa8e2c4be58194667f04a0660b1467d7b856-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_7f6e4be6cdc814629dd6cd2f5b61fa744a737812-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_59564641cea2748dd06c48d2f9b47f5ca5d4b683-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-internal_impl-24.2.1_42ce643e71697b19e5e07a95aed33e74e122c53b-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-hyphenatechat_3.2.0_0757a395638c17f0984873072255f0f84ddfc79f-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-google-play-services_987abc0f66a13a4a6cb60e980ef637b8a4eca6b7-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-glide-3.6.1_3eeb79717f4fcf17d0325cd728a09f832133091c-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-base-0.14.1_de47fa51456a5d62dbbcb6f5c7749c8e400f20a8-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-imagepipeline-0.14.1_c0facf22e1e98b21e2b7933dfea0b1f5f0c662ca-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fresco-0.14.1_5cf7f81877d92ae6de730a18f8cf1addf2891798-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-fbcore-0.14.1_a4d879851dd679203af1d94881e48a8055310ef4-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.facebook.fresco-drawee-0.14.1_ffd568249af9c8ba8aa2b392d67091049420ce57-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-vector-drawable-24.2.1_c418f10a3afb13e187d46f3ce64607ca12ab4c18-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-v4-24.2.1_9f13743063890427d291e7b491a24a75bd888307-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-media-compat-24.2.1_909bb8825f664906001f4de0bb100660fd3d2256-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support-fragment-24.2.1_5cdf81c4aa86fdec73518c7462f0c27880b2425a-classes.dex", dex file "/data/data/com.zhanyun.yunshop/files/instant-run/dex/slice-com.android.support-support
11-08 10:35:41.046 19840-19840/com.zhanyun.yunshop D/Error: ERR: TOTAL BYTES WRITTEN: 24452
本人通过尝试导入不同版本(包括最新版)Fresco和不同版本(包括最新版)Glide均不行,只要是两个库同时存在时,就是报如图所示的java.lang.UnsatisfiedLinkError错误,通过不断得尝试,得出了暂时的解决方案,把原项目的图片加载库Fresco,也换成EaseUI的Glide,就能正常运行了,不知道这个问题是环信Easeui库和Fresco发生了什么事呢?还是Glide和Fresco发生了什么事?也不知道是否算一个Bug,所以特发此贴,希望通过大家一起讨论得到最好的结果,或者环信的攻城狮给予回复,谢谢。
没有找到相关结果
已邀请:
11 个回复
lzan13 - 慢慢来,一步一个脚印?
确认下是不是因为这个的问题,因为据我所知 Facebook 退出的那个图片加载库 Fresco 是用本地方式处理图片的,应该有 so 库,有可能是这个问题,你先试下吧
mozhijie - 与其抱怨太多,不如努力更多。
陈日明 - 90后IT男
defaultConfig里面加入
multiDexEnabled true
这行代码
geri_yang
mozhijie - 与其抱怨太多,不如努力更多。
那么问题又来了,为什么3.0版本在不加resco库的前提下,为什么架构为arm64-v8a、armeabi-v7a和x86或x86_64的手机都能运行呢?难道环信的攻城狮不能给我个回复吗?
lzan13 - 慢慢来,一步一个脚印?
刚才我也用模拟器试了下,没有问题,下边是模拟器运行你 app 的截图
cloud_枫叶 - 90后IT男
mozhijie - 与其抱怨太多,不如努力更多。
从截图和我再次经过一系列的测试,我个人得到的以下结果:
1、我使用的mac开发环境没有问题,因为在mac上发现的程序崩溃,在windows上也一样。
2、文章中的小DEMO发生的程序崩溃,是视不同框架的手机会发生不一样的结果,我现在所测试的真机中,也有程序运行正常的,但同时也有程序运行崩溃的。测试的真机中,暂时只有魅族系列的魅蓝3S、魅族3和nexus 6p通过测试,没有发生崩溃;发生程序崩溃的真机有:nubia z7 max、小米note和虚拟机系列架构为x86_64、armeabi-v7a。但有一个神奇的现象是,但我不导入Fresco库时,全部通过测试,没有发生崩溃。
3、如果你想查看发生崩溃的日志时,建议环信攻城狮使用一下,AS自带的虚拟机,框架为x86_64的虚拟机运行本文DEMO,如无意外,程序应该会崩溃。
4、我目前的解决方案是:不使用Fresco库来作为图片加载库,使用和环信官方DEMO一样的图片加载库Glide,并不会发生程序崩溃,再次证明我的开发环境没有问题。
希望我这个反馈,可以对环信攻城狮们有对环信SDK做到完美的一点点帮助,谢谢。
mozhijie - 与其抱怨太多,不如努力更多。
但Fresco库在没有导入环信SDK的时候,只有它这个库的时候,它也是能正常运行的。一直原来我都是用这个库来加载图片的,都没有发生程序崩溃,足以证明它这个库也是能支持大部分框架的。
让我想不明白的是,当Fresco库和环信SDK同时导入项目的时候,就会视不同框架发生不同的情况,有些机型就能正常运行,如魅族;有些机型就会发现程序崩溃,如nubia z7 max,小米note。
更让我想不明白的是,当不再采用Fresco库做为图片加载库的时,而采用和环信官方DEMO一致的Glide库时,什么问题也没有。
lzan13 - 慢慢来,一步一个脚印?
mozhijie - 与其抱怨太多,不如努力更多。
结论是:这个问题与环信SDK没有关系,不算Bug。
很感谢@lzan13的回答,O(∩_∩)O谢谢。