Help needed - Couldn't load SampleNDK from loader dalvik.system.PathClassLoader

16 views
Skip to first unread message

RagsSuper!

unread,
Feb 25, 2015, 6:34:57 PM2/25/15
to andro...@googlegroups.com
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.

If anybody has solved this problem, please guide me. I am using latest version 1.1 Android Studio Beta.

Thank You!
Reply all
Reply to author
Forward
0 new messages