I have a static library(libnative.a) which I have generated for arm architecture. Now I want to use the library in my android application using NDK. My Android.mk has
LOCAL_STATIC_LIBRARIES := libnative
i was also trying to load the library in java using System.loadlibrary("path/to/the/libnative.a");
But I get error:
java.lang.UnsatisfiedLinkError: Couldn't load libnative.a from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.testsdk-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.testsdk-2, /system/lib]]]: findLibrary returned null
Please help me in loading static libraries in android application. I've already worked with shared libraries. I'm very much familier with loading .so files. Thanks in Advance :)