|
26396-26396/com.bairuitech.anychatdemo E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.bairuitech.anychatdemo, PID: 26396
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.bairuitech.anychatdemo-1/base.apk"],nativeLibraryDirectories=[/data/app/com.bairuitech.anychatdemo-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libaudio_preprocessing.so"
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:989)
at com.bairuitech.anychat.AnyChatCoreSDK.<clinit>(AnyChatCoreSDK.java:700)
at com.bairuitech.callcenter.LoginRoomFragment.initSdk(LoginRoomFragment.java:99)
at com.bairuitech.callcenter.LoginRoomFragment.onCreateView(LoginRoomFragment.java:61)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1026)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1207)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1572)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:493)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5336)
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:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
出现上述问题,通常是解决方案中存在arm64-v8a、armeabi两个目录,而两个目录中的库不一致所导致的,由于arm64-v8a是可以向下兼容的,所以可以删除arm64-v8a目录,只保留armeabi目录即可解决上述问题。
通常来说,apk打包时为减小体积,也只打包armeabi一个目录,如常用的微信也是采用这种打包方案。
|
|