Intermittent Android NDK UnsatisfiedLinkError

I get sporadic, it is hard to reproduce UnsatisfiedLinkErrors, most often when my application is paused for a long time (i.e. hours). These errors occur with JNI calls that usually work.

Can Android sometimes unload a library without completely closing the application? I load my native library into one activity, but also use it in another activity. Can Android kill an activity loading a library and unloading it, and then reload the library when another work that uses it resumes?

+3
source share
1 answer

Every time you load a library with this action,

   static {
        System.loadLibrary("gamescript");
    }       

Activity, , , . , .

+1

All Articles