gradle.properties添加  没有这个文件就新建再工程父目录下

Error: Your project contains C++ files but it is not using a supported native build system.Consider_再工程

 

android.useDeprecatedNdk=true

build.gradle(Module:app)

android 节点下新增

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