Error:Execution failed for task ':app: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:
在带有jni 工程的build.grade 文件中,
在Android {}里面增加如下项目,
sourceSets.main {
jni.srcDirs = []//disable automatic ndk-build call
jniLibs.srcDir "src/main/libs"
}
在src/main/目录下要有libs,如果没有libs,那么手动创建一个这个目录,并把已经预编译的lib 放到这个目录下。
http://blog.csdn.net/fu_shuwu/article/details/72823766