错误:任务':app:compileDebugNdk'执行失败。 >错误:当前插件中不推荐使用NDK集成

时间:2017-05-04 07:13:35

标签: android-studio

我试图导入android studio projext,我发现此错误

example image

这是错误文本

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 个答案:

答案 0 :(得分:1)

您应该为此错误创建包含内容android.useDeprecatedNdk=true的文件 gradle.properties

还要确保已安装NDK。您应该将NDK目录的路径提供为 local.properties 文件ndk.dir=PutYourNdkPath