Error:Execution failed for task ':app:compileDebugNdk'.

来源:互联网 发布:淘宝助手打印 编辑:程序博客网 时间:2024/06/06 07:50

如果报下面错误

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就可以

阅读全文
0 0