I have followed all the steps mentioned in this answer(Link).
But still I am getting the same Unsatisfied Link Error as shown below.
11-11 12:38:22.304: E/AndroidRuntime(19180): FATAL EXCEPTION: main 11-11 12:38:22.304: E/AndroidRuntime(19180): java.lang.UnsatisfiedLinkError: mAdd
Here's the screen shot of our app which obtained from Native Libs Monitor
PS: We have generated the .so file using NDK build from Android instead of cygwin64.
Could you please convey me what is the real problem here ?
== Update ==
Please go through the following image
Inside libAddition.so file,
native method public native int mAdd(int v1,int v2)
; is declared in Addition.java file.
Header file is generated, for this java file using javah which contains this declaration,
JNIEXPORT jint JNICALL Java_com_example_testsampleso_Addition_mAdd
(JNIEnv *, jobject, jint, jint);
Here, my question is
why method signature or Entry point Java_com_example_testsampleso_Addition_mAdd
in generated header file and Java_com_ndkadd_Addition_Addition_mAdd
in .so file is different ?
is that the reason for unsatisfied linker error ?