为什么我在Android中运行应用程序真实性时会收到以下错误(java.lang.UnsatisfiedLinkError)

时间:2016-07-01 10:32:29

标签: ibm-mobilefirst worklight-server mobilefirst-server

我创建了一个Android应用程序,我已经在其中添加了应用程序真实性的代码。 我按照以下URL来实现它。 https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/authentication-security/application-authenticity-protection/

https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/authentication-security/application-authenticity-protection/application-authenticity-protection-native-android-applications/

我在测试时遇到错误。 有些人可以告诉我什么时候会得到以下错误。

FATAL EXCEPTION:pool-3-thread-1                                                                  处理: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]]]找不到“libauthjni.so”                                                                      在java.lang.Runtime.loadLibrary(Runtime.java:367)                                                                      在java.lang.System.loadLibrary(System.java:1076)                                                                      在com.worklight.common.security.AppAuthenticityToken。(AppAuthenticityToken.java:30)                                                                      在com.worklight.wlclient.challengehandler.AuthenticityChallengeHandler.handleChallenge(AuthenticityChallengeHandler.java:81)                                                                      在com.worklight.wlclient.challengehandler.AuthenticityChallengeHandler.handleChallenge(AuthenticityChallengeHandler.java:32)                                                                      在com.worklight.wlclient.api.challengehandler.BaseChallengeHandler.startHandleChallenge(BaseChallengeHandler.java:71)                                                                      在com.worklight.wlclient.WLRequest.checkResponseForChallenges(WLRequest.java:626)                                                                      在com.worklight.wlclient.WLRequest.requestFinished(WLRequest.java:292)                                                                      在com.worklight.wlclient.WLRequestSender.run(WLRequestSender.java:52)                                                                      在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)                                                                      at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:588)                                                                      在java.lang.Thread.run(Thread.java:818)

1 个答案:

答案 0 :(得分:1)

  

在java.lang.Runtime.loadLibrary上找不到“libauthjni.so”

在我看来,您没有将所有必需的SDK文件从您通过CLI / Studio创建的NativeAPI复制到Android Studio / Eclipse中的本机项目中。

确保你已经完成了。