I\'m trying to use the NDK with C++ and can\'t seem to get the method naming convention correct. my native method is as follows:
extern \"C\" { JNIEXPORT voi
If your package name includes _ character, you should write 1(one) after _ character as shown below:
MainActivity.java
package com.example.testcpp_2;
native-lib.cpp
JNICALL Java_com_example_testcpp_12_MainActivity_stringFromJNI(