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

相關文章
相關標籤/搜索