java.lang.UnsatisfiedLinkError: Couldn't load TestJni from loader dalvik.system.PathClassLoader[DexPathLi
解压apk后,发现确实libs中没有这个so库。
于是在build.gradle里面加上后解决问题:
android{ sourceSets { main { // Fixed Issue : "android studio java.lang.unsatisfiedlinkerror: couldn't load find library returned null" // Cause : For android studio : The JNI files should be placed in the /src/main/jniLibs folder. // Fix : Mapping the jniLibs 's source Directories with Lib's folder jniLibs.srcDirs = ['libs'] } }}