Now I compiled the libharu into so, but when I write the code :System.LoadLibrary, it can't work, the error message is:
java.lang.UnsatisfiedLinkError: Couldn't load libharu.so: findLibrary returned null
What's up?
What is the LOCAL_MODULE in your Android.mk file whie compiling? In my case it is LOCAL_MODULE := hpdf. So it creates libhpdf.so file and you need to System.loadLibrary("hpdf");
What is the name of so
file? Are you sure it is in the lib\armeabi
folder in eclipse?
You should load with System.loadLibrary("libharu")
, not with .so
extension.