为什么我会收到以下错误 (java.lang.UnsatisfiedLinkError) 而 运行 应用真实性在 Android
Why would i get the below error(java.lang.UnsatisfiedLinkError) while running app authenticity in Android
我创建了一个 android 应用程序,并在其中放置了应用程序真实性代码。
我按照以下 URL 来实现它。
application-authenticity-protection
application-authenticity-protection-native-android-applications
我在测试时遇到错误。
有人能告诉我什么时候会出现以下错误吗?
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
在我看来,您没有将所有必需的 SDK 文件从您通过 CLI/Studio 创建的 NativeAPI 复制到 Android Studio/Eclipse.[=11 中的本地项目中=]
确保你已经做到了。
我创建了一个 android 应用程序,并在其中放置了应用程序真实性代码。 我按照以下 URL 来实现它。
application-authenticity-protection
application-authenticity-protection-native-android-applications
我在测试时遇到错误。 有人能告诉我什么时候会出现以下错误吗?
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
在我看来,您没有将所有必需的 SDK 文件从您通过 CLI/Studio 创建的 NativeAPI 复制到 Android Studio/Eclipse.[=11 中的本地项目中=]
确保你已经做到了。