Android Studio 集成EaseUI启动App就报错
Process: com.mic.android.bbaccount, PID: 7598
java.lang.UnsatisfiedLinkError: Couldn't load hyphenate_av from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.mic.android.bbaccount-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.mic.android.bbaccount-2, /vendor/lib, /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.controller.EaseUI.init(EaseUI.java:114)
at com.mic.android.bbaccount.app.BApplication.onCreate(BApplication.java:56)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4341)
at android.app.ActivityThread.access$1500(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1261)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5016)
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:792)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
at dalvik.system.NativeStart.main(Native Method)
java.lang.UnsatisfiedLinkError: Couldn't load hyphenate_av from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.mic.android.bbaccount-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.mic.android.bbaccount-2, /vendor/lib, /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.controller.EaseUI.init(EaseUI.java:114)
at com.mic.android.bbaccount.app.BApplication.onCreate(BApplication.java:56)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4341)
at android.app.ActivityThread.access$1500(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1261)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5016)
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:792)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
at dalvik.system.NativeStart.main(Native Method)
没有找到相关结果
已邀请:
4 个回复
Blin
EaseUI.getInstance().init(this, options);
[已注销]
GXJ
stream_x - android
我的工程也出现这个问题,打包出来的apk只能在少数的机型上可以运行,在云测上的报告只有13%的主流机型才可以启动,log如下:
05-12 19:07:47.592: E/dalvikvm(17482): threadid=10: calling run(),name=BridgeServerManager ListenThread
05-12 19:07:47.592: E/AndroidRuntime(17443): FATAL EXCEPTION: main
05-12 19:07:47.592: E/AndroidRuntime(17443): java.lang.UnsatisfiedLinkError: Couldn't load hyphenate_av: findLibrary returned null
05-12 19:07:47.592: E/AndroidRuntime(17443): at java.lang.Runtime.loadLibrary(Runtime.java:365)
05-12 19:07:47.592: E/AndroidRuntime(17443): at java.lang.System.loadLibrary(System.java:535)
05-12 19:07:47.592: E/AndroidRuntime(17443): at com.hyphenate.chat.EMClient.loadLibrary(Unknown Source)
05-12 19:07:47.592: E/AndroidRuntime(17443): at com.hyphenate.chat.EMClient.getInstance(Unknown Source)
05-12 19:07:47.592: E/AndroidRuntime(17443): at com.hyphenate.easeui.controller.EaseUI.init(EaseUI.java:114)
05-12 19:07:47.592: E/AndroidRuntime(17443): at com.yxys.yingnuo.application.DemoHelper.init(DemoHelper.java:174)
05-12 19:07:47.592: E/AndroidRuntime(17443): at com.yxys.yingnuo.application.ExamManagerApplication.onCreate(ExamManagerApplication.java:50)
05-12 19:07:47.592: E/AndroidRuntime(17443): at com.qihoo.util.StubApplication.onCreate(StubApplication.java:75)
05-12 19:07:47.592: E/AndroidRuntime(17443): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:999)
05-12 19:07:47.592: E/AndroidRuntime(17443): at com.lbe.security.service.core.client.b.x.callApplicationOnCreate(Unknown Source)
05-12 19:07:47.592: E/AndroidRuntime(17443): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4315)
05-12 19:07:47.592: E/AndroidRuntime(17443): at android.app.ActivityThread.access$1300(ActivityThread.java:140)
05-12 19:07:47.592: E/AndroidRuntime(17443): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1273)
05-12 19:07:47.592: E/AndroidRuntime(17443): at android.os.Handler.dispatchMessage(Handler.java:99)
05-12 19:07:47.592: E/AndroidRuntime(17443): at android.os.Looper.loop(Looper.java:137)
05-12 19:07:47.592: E/AndroidRuntime(17443): at android.app.ActivityThread.main(ActivityThread.java:4914)
05-12 19:07:47.592: E/AndroidRuntime(17443): at java.lang.reflect.Method.invokeNative(Native Method)
05-12 19:07:47.592: E/AndroidRuntime(17443): at java.lang.reflect.Method.invoke(Method.java:511)
05-12 19:07:47.592: E/AndroidRuntime(17443): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:808)
05-12 19:07:47.592: E/AndroidRuntime(17443): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:575)
05-12 19:07:47.592: E/AndroidRuntime(17443): at dalvik.system.NativeStart.main(Native Method)
05-12 19:07:47.602: W/ActivityManager(7140): Force finishing activity com.yxys.yingnuo/.ui.StartActivity
05-12 19:07:47.602: W/InputMethodManagerService(7140): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@436f9408 attribute=null