问题描述
android4.4可以执行,4.2会报错:failed: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "log2f" referenced by "libhyphenate_av.so" 环信网站下载最新版本官方Demo apk,安装到安卓4.2上也是同一个问题挂掉全部log如下:06-14 10:56:40.020 769-769/com.hyphenate.chatuidemo E/Trace: error opening trace file: No such file or directory (2)06-14 10:56:40.230 769-769/com.hyphenate.chatuidemo I/MultiDex: VM with version 1.6.0 does not have multidex support06-14 10:56:40.230 769-769/com.hyphenate.chatuidemo I/MultiDex: install06-14 10:56:40.240 769-769/com.hyphenate.chatuidemo I/MultiDex: MultiDexExtractor.load(/data/app/com.hyphenate.chatuidemo-1.apk, false)06-14 10:56:40.250 769-769/com.hyphenate.chatuidemo I/MultiDex: loading existing secondary dex files06-14 10:56:40.250 769-769/com.hyphenate.chatuidemo I/MultiDex: load found 0 secondary dex files06-14 10:56:40.250 769-769/com.hyphenate.chatuidemo I/MultiDex: install done06-14 10:56:40.250 769-769/com.hyphenate.chatuidemo I/MultiDex: install06-14 10:56:40.270 769-769/com.hyphenate.chatuidemo D/DemoHelper: init HuanXin Options06-14 10:56:40.290 769-769/com.hyphenate.chatuidemo D/EaseUI: process app name : com.hyphenate.chatuidemo06-14 10:56:40.290 769-769/com.hyphenate.chatuidemo D/dalvikvm: Trying to load lib /data/app-lib/com.hyphenate.chatuidemo-1/libhyphenate_av.so 0x40fb80c806-14 10:56:40.370 769-769/com.hyphenate.chatuidemo E/dalvikvm: dlopen("/data/app-lib/com.hyphenate.chatuidemo-1/libhyphenate_av.so") failed: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "log2f" referenced by "libhyphenate_av.so"...06-14 10:56:40.370 769-769/com.hyphenate.chatuidemo D/AndroidRuntime: Shutting down VM06-14 10:56:40.370 769-769/com.hyphenate.chatuidemo W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40b37930)06-14 10:56:40.380 769-769/com.hyphenate.chatuidemo E/AndroidRuntime: FATAL EXCEPTION: main java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "log2f" referenced by "libhyphenate_av.so"... at java.lang.Runtime.loadLibrary(Runtime.java:371) at java.lang.System.loadLibrary(System.java:535) 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:119) at com.hyphenate.chatuidemo.DemoHelper.init(DemoHelper.java:155) at com.hyphenate.chatuidemo.DemoApplication.onCreate(DemoApplication.java:42) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391) at android.app.ActivityThread.access$1300(ActivityThread.java:141) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5041) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:817) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584) at dalvik.system.NativeStart.main(Native Method)
解决方案
官网更新的最新版本fix这个问题了,可以下载执行下最新的版本http://www.easemob.com/download/im
解决方案二:
已经测试可以了,多谢!