Hello,
I am new to Android and working on a NDK
application. I am unable to load the library and call a "C" function via
JNI in my Android app. The logs are as below:
02-22 16:20:32.280: E/AndroidRuntime(9504): FATAL EXCEPTION: main
02-22 16:20:32.280: E/AndroidRuntime(9504): java.lang.UnsatisfiedLinkError: Couldn't load SampleNDK from loader dalvik.system.PathClassLoader[DexPathList[dexElements=[zip file "/data/app/com.example.raghu.samplendk-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.raghu.samplendk-2, /vendor/lib, /system/lib]]]: findLibrary returned null
I googled for solutions, but I could not find precise solution. Also, with latest Gradle, the build configuration has changed.