android-ndk-swig-example
android-ndk-swig-example copied to clipboard
AS doesn't find native methods from SWIG generated files.
With Android Studio: 3.1.3 And the android build plugin: com.android.tools.build:gradle:3.1.3
If you build externalNativeBuidDebug before starting Android Studio, the build inside AS runs ok, but the IDE flags all the native methods in the java class as undefined. (Letting AS update the gradle plugin).
This is likely an AS/Swig issue, as SWIG is generating SWIGEXPORT jlong JNICALL Java_com_sureshjoshi_core_SeePlusPlus_1WrapperJNI_IntVector_1size(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_)
And AS wants to find JNIEXPORT jlong JNICALL Java_com_sureshjoshi_core_SeePlusPlus_1WrapperJNI_IntVector_1size(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_)