Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dschmitt007 opened this issue Jul 13, 2018 · 0 comments
Open

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

dschmitt007 opened this issue Jul 13, 2018 · 0 comments

Comments

@dschmitt007
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant