问题描述
在海马玩模拟器上可以运行,在手机和电视上就会报这个错。 so文件都有, java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/****/lib/arm/libhyphenate_av.so" at java.lang.Runtime.loadLibrary(Runtime.java:371) at java.lang.System.loadLibrary(System.java:988) at com.hyphenate.chat.EMClient.loadLibrary(Unknown Source) at com.hyphenate.chat.EMClient.getInstance(Unknown Source) at com.hyphenate.easeui.controller.EaseUI.init(EaseUI.java:114) at com.hyphenate.chatuidemo.DemoHelper.init(DemoHelper.java:154) at com.ddcq.shouletv.common.MyApplication.onCreate(MyApplication.java:27) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1029) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4930) at android.app.ActivityThread.access$1500(ActivityThread.java:175) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1585) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:192) at android.app.ActivityThread.main(ActivityThread.java:5717) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:975) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
解决方案
这边建议您是直接运行下自己的easeuidemo,然后直接导入下这个easeui库引入下看看了。先测试下最新版本的demo有没有这个问题了。然后 直接导入下easeui库就行了。