Skip to content

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

Description

@dschmitt007

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions