Set "$USE_DEPRECATED_NDK=true" in gradle.properties to continue using the current NDK integration. 解

一、将 jni 文件夹名改成 cpp;html

二、添加 CMakeLists.txt;android

三、修改 build.gradle;gradle

    externalNativeBuild {
        cmake {
            path "CMakeLists.txt"
        }
    }

【参考】ui

https://developer.android.com/studio/projects/add-native-code.htmlspa

相关文章
相关标签/搜索