您的警告绝对清楚,请尝试以下方式:
制作以下课程:
public class MyApplication extends Application {
private static Context c;
@Override
public void onCreate(){
super.onCreate();
this.c = getApplicationContext();
}
public static Context getAppContext() {
return this.c;
}
}
在你的android清单中声明上面的类:
然后
static {
// load the JNI library
Log.i("JNI","loading JNI library...");
System.load(MyApplication.getAppContext().getFilesDir().getParentFile().getPath() + "/lib/libxxxxxx.so");
Log.i("JNI","JNI library loaded!");
}
P.S未经测试