I successfully cross-compiled a c++ library with the android ndk-Standalone toolchain then, i created a new android application project into Eclipse and when i put mylib.so
If you have your compiled native library (the .so
-file) in your lib/
-directory, you can refer to it without using the full path:
static{
System.load("mylib");
}
As shown in the tutorial.
Check to see if you set the right package in your Header-file: How to resolve the java.lang.UnsatisfiedLinkError in NDK in Android?