cannot resolve corresponding jni function. Reports native method declaration in java where no corresponding JNI function is found in project.

  • Replies:4
  • OpenNot stickiedUnanswered
  • Forum posts: 8

Aug 20, 2018, 9:13:27 AM via Website

Hi,
I have gone through many posts and i couldn't find a solution till now. I am getting the warning message as "cannot resolve corresponding JNI function. Reports native method declaration in java where no corresponding JNI function is found in project." I tried using @SuppressWarnings("JniMissingFunction"). The warning went but it is not generation the .so file. I don't know where i am wrong. Please help me. image

Reply
  • Forum posts: 8

Aug 20, 2018, 10:29:20 AM via Website

My package name is Java_com_example_gayu_helloworld_mainfn

Helpful?
Reply
  • Forum posts: 8

Aug 20, 2018, 1:00:35 PM via Website

Sorry that was the error of some other project. JNIEXPORT void JNICALL Java_com_example_vinay_screenreader_MyScreenReaderService_mainfn

Helpful?
Reply

Recommended articles