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

1、将 jni 文件夹名改为 cpp;

2、添加 CMakeLists.txt;

3、修改 build.gradle;

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

【参考】

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

posted @ 2016-10-01 22:19  壬子木  阅读(1196)  评论(0编辑  收藏  举报