android-ndk-swig-example icon indicating copy to clipboard operation
android-ndk-swig-example copied to clipboard

AS doesn't find native methods from SWIG generated files.

Open dschmitt007 opened this issue 6 years ago • 0 comments

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_)

dschmitt007 avatar Jul 13 '18 15:07 dschmitt007