NDK工程建立后,运行出现Your project contains C++ files but it is not using a supported native build system的报错:
解决方案如下:
1.
在项目的gradle.properties添加
android.useDeprecatedNdk=true
2.
在module的build.gradle(Module:app)的buildTypes上面添加sourceSets属性
sourceSets {
main {
jni.srcDirs = []
}
}