[英]Why would i get the below error(java.lang.UnsatisfiedLinkError) while running app authenticity in Android
I created an android app and I have put a code for app authenticity in it .我创建了一个 android 应用程序,并在其中放置了一个应用程序真实性代码。 I followed the below URLs to Implement it.
我按照下面的网址来实现它。
application-authenticity-protection 应用程序真实性保护
application-authenticity-protection-native-android-applications 应用程序真实性保护本机安卓应用程序
I am getting an error while testing it.我在测试时遇到错误。 Can some body tell me when would we get the below error.
有人可以告诉我什么时候会出现以下错误。
FATAL EXCEPTION: pool-3-thread-1
Process: com.mtb.mbk_vpn, PID: 10084
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.mtb.mbk_vpn-1/base.apk"],nativeLibraryDirectories=[/data/app/com.mtb.mbk_vpn-1/lib/x86, /data/app/com.mtb.mbk_vpn-1/base.apk!/lib/x86, /vendor/lib, /system/lib]]] couldn't find "libauthjni.so"
at java.lang.Runtime.loadLibrary(Runtime.java:367)
at java.lang.System.loadLibrary(System.java:1076)
at com.worklight.common.security.AppAuthenticityToken.<init>(AppAuthenticityToken.java:30)
at com.worklight.wlclient.challengehandler.AuthenticityChallengeHandler.handleChallenge(AuthenticityChallengeHandler.java:81)
at com.worklight.wlclient.challengehandler.AuthenticityChallengeHandler.handleChallenge(AuthenticityChallengeHandler.java:32)
at com.worklight.wlclient.api.challengehandler.BaseChallengeHandler.startHandleChallenge(BaseChallengeHandler.java:71)
at com.worklight.wlclient.WLRequest.checkResponseForChallenges(WLRequest.java:626)
at com.worklight.wlclient.WLRequest.requestFinished(WLRequest.java:292)
at com.worklight.wlclient.WLRequestSender.run(WLRequestSender.java:52)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
couldn't find "libauthjni.so" at java.lang.Runtime.loadLibrary
在 java.lang.Runtime.loadLibrary 中找不到“libauthjni.so”
Looks to me like you did not copy all required SDK files from the NativeAPI you've created via CLI/Studio, into your native project in Android Studio/Eclipse.在我看来,您没有将所有必需的 SDK 文件从您通过 CLI/Studio 创建的 NativeAPI 复制到您在 Android Studio/Eclipse 中的本机项目中。
Make sure you've done that.确保你已经这样做了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.