admin管理员组文章数量:1291124
错误提示
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 = []
}
}
}
本文标签: NDKCMAKEbuildinformationintegration
版权声明:本文标题:Consider using CMake or ndk-build integration. For more information, go to 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1738336632a2077040.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论