1. 程式人生 > >Android 匯入環信,初始化失敗 java.lang.UnsatisfiedLinkError: Couldn't load hyphenate from loader dalvik.system

Android 匯入環信,初始化失敗 java.lang.UnsatisfiedLinkError: Couldn't load hyphenate from loader dalvik.system

錯誤

06-13 15:06:51.813 8467-8467/com.wlkj.ciyun.sj E/AndroidRuntime: FATAL EXCEPTION: main
                                                                 Process: com.wlkj.ciyun.sj, PID: 8467
                                                                 java.lang.UnsatisfiedLinkError: Couldn't load
hyphenate from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.wlkj.ciyun.sj-1.apk", zip file "/data/data/com.wlkj.ciyun.sj/code_cache/secondary-dexes/com.wlkj.ciyun.sj-1.apk.classes2.zip"],nativeLibraryDirectories=[/data/app-lib/com.wlkj.ciyun.sj-1, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358) at java.lang.System.loadLibrary(System.java:526) at
com.hyphenate.chat.EMClient.loadLibrary(Unknown Source) at com.hyphenate.chat.EMClient.getInstance(Unknown Source) at com.hyphenate.easeui.EaseUI.init(EaseUI.java:115) at com.wlkj.ciyun.sj.config.MyApp.onCreate(MyApp.java:52) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4346) at android.app.ActivityThread.access$1500(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5019) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method)

這裡寫圖片描述

這是因為沒有匯入環信so檔案的問題,把so檔案匯入clean就可以了