java.lang.UnsatisfiedLinkError 的解决方法

 Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.tencent.callsdkdemo-3EZHtzCJJGyO3YKfhNKNMA==/base.apk"],nativeLibraryDirectories=[/data/app/com.tencent.callsdkdemo-3EZHtzCJJGyO3YKfhNKNMA==/lib/arm, /system/fake-libs, /data/app/com.tencent.callsdkdemo-3EZHtzCJJGyO3YKfhNKNMA==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]]] couldn't find "libHCCore.so"         at java.lang.Runtime.loadLibrary0(Runtime.java:1011)         at java.lang.System.loadLibrary(System.java:1657)         at com.hikvision.netsdk.HCNetSDK.(HCNetSDK.java:37)         at com.hikvision.netsdk.HCNetSDK.getInstance(HCNetSDK.java:24)         at com.tencent.calldemo.CallActivity.loginNormalDevice(CallActivity.java:723)         at com.tencent.calldemo.CallActivity.loginDevice(CallActivity.java:859)         at com.tencent.calldemo.CallActivity.login(CallActivity.java:526)         at com.tencent.calldemo.CallActivity.access$300(CallActivity.java:67)         at com.tencent.calldemo.CallActivity$LoadingTask.doInBackground(CallActivity.java:432)         at com.tencent.calldemo.CallActivity$LoadingTask.doInBackground(CallActivity.java:418)

 

Android Studio 错误的解决方法:
如图只要在app的build.gradle中添加如下代码,然后 Rebuild

java.lang.UnsatisfiedLinkError 的解决方法_第1张图片

Eclipse 错误的解决方法:

在lib目录下建下面这些文件夹 然后把所有报错的so文件都放一份到每个文件夹下。
"armeabi", "armeabi-v7a", "x86_64"

 

你可能感兴趣的:(问题记录)