您的位置:首页 > 编程语言 > C语言/C++

Your project contains C++ files but it is not using a supported native build system.

2017-02-27 10:23 459 查看
异常如下

Error:Execution failed for task ':xdySDKddd:compileDebugNdk'.
> Error: Your project contains C++ files but it is not using a supported native build system.
Consider using CMake or ndk-build integration with the stable Android Gradle plugin: https://developer.android.com/studio/projects/add-native-code.html or use the experimental plugin: http://tools.android.com/tech-docs/new-build-system/gradle-experimental.[/code] 
解决方法如下

在gradle里添加如下

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
sourceSets {
main {
jni.srcDirs = []
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐