Consider using CMake or ndk-build integration. For more information, go to

错误提示 Error: Your project contains C files but it is not using a supported native build system. Consider using CMake or

错误提示

Error: Your project contains C++ files but it is not using a supported native build system.
Consider using CMake or ndk-build integration. For more information, go to:
 https://d.android/r/studio-ui/add-native-code.html
Alternatively, you can use the experimental plugin:
 https://developer.android/r/tools/experimental-plugin.html

原因:

在 /app/src/main/ 下创建了 jni文件,并创建了Android.mk文件

文件内容

LOCAL_CERTIFICATE := platform
LOCAL_CERTIFICATE := shared

make project  报错

 

解决建议:在 build.gradle 中添加以下代码

android {
  ........

      sourceSets {
        main {
            jni.srcDirs = []
        }
    }
}

 

发布者:admin,转转请注明出处:http://www.yc00.com/web/1738336631a4038983.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信