androidibm-mobilefirstmobilefirst-serverworklight-server

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 . 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)

Solution

  • couldn't find "libauthjni.so" at java.lang.Runtime.loadLibrary

    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.

    Make sure you've done that.