Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In your CMakeLists.txt add this https://www.pastiebin.com/5cf897647a939 and your build.gradle file must add following lines.

   externalNativeBuild {
        cmake {
            cppFlags "-frtti -fexceptions"
            abiFilters 'armeabi-v7a'//, 'arm64-v8a'
        }
    }

    sourceSets.main
        {
            jni.srcDirs = []
            jniLibs.srcDir 'src/main/libs'
        }

    externalNativeBuild {
    cmake {
        path "src/main/cpp/CMakeLists.txt"
        version "3.10.2"
    }
}

In your CMakeLists.txt add this https://www.pastiebin.com/5cf897647a939 and your build.gradle file must add following lines.

   externalNativeBuild {
        cmake {
            cppFlags "-frtti -fexceptions"
            abiFilters 'armeabi-v7a'//, 'armeabi-v7a', 'arm64-v8a'
        }
    }

    sourceSets.main
        {
            jni.srcDirs = []
            jniLibs.srcDir 'src/main/libs'
        }

    externalNativeBuild {
    cmake {
        path "src/main/cpp/CMakeLists.txt"
        version "3.10.2"
    }
}