Search code examples
androideclipseandroid-studioandroid-ndkjava-native-interface

Can not resolve corresponding JNI Function


I did not find a solution to my problem in similar threads like:
Cannot resolve corresponding JNI function with .so file
I have an android project written with Eclipse ADT plugin and I needed to import it into android studio. In the eclipse workspace there were .so files and when I imported it into android studio the .so files are imported into jnilibs under main folder. When I open the classes containing native method calls I got "Cannot resolve corresponding JNI function" and the project does not work well even it is compiled without problems but as functionality the project does not work well.


Solution

  • I resolved my issue noted above by reimporting the project from eclipse and everything work well now. Maybe it missed importing something..