Android System.loadLibrary throwing UnsatisfiedLinkError

Android System.loadLibrary throwing UnsatisfiedLinkError
0.0 0


Hey all,

Our game is live in the Android store and we’re getting some crash reports from Google:

    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(
    at android.os.Handler.dispatchMessage(
    at android.os.Looper.loop(
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(
    at dalvik.system.NativeStart.main(Native Method)
    Caused by: java.lang.UnsatisfiedLinkError: Couldn't load game: findLibrary returned null
    at java.lang.Runtime.loadLibrary(
    at java.lang.System.loadLibrary(

It appears to be happening with this call in our main Activity:

static {

The app crashes immediately on startup when this happens. We can’t reproduce this in any local environment. I’ve searched around online and there’s a number of possible reasons for this. It appears to happen on all devices and all versions of Android. It can also happen if the app is corrupted during install from Google Play.

I know the System call is for loading the JNI bindings. Are there any special compiler flags we need to add in our A lot of people were able to solve these problems by tweaking their makefile a bit. Just wondering if any one else ran in to this.


— Joel


I got same problem. :frowning:

Actually this problem happens on emulator, not on device.

Anyone help us ?


Does this thread refer to Javascript Binding??


Yes. It’s related to JavaScript bindings in Android builds. You need the JNI calls in order to use the bindings.


Could you make a demo to reproduce this issue? That will be easier for use to debug. Thanks.


Check it: