如果报下面错误
Error:Execution failed for task ':app:compileDebugNdk'.
> Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental.
> Set "$USE_DEPRECATED_NDK=true" in gradle.properties to continue using the current NDK integration.
可以用如下方法解决
1 在gradle-wrapper.properties 文件下加入如下文件
USE_DEPRECATED_NDK=true
2.在build.gradle 中加入
sourceSets.main {
jni.srcDirs = []
}
最后点击右上角sync就可以