我试图导入android studio projext,我发现此错误
这是错误文本
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.
答案 0 :(得分:1)
您应该为此错误创建包含内容android.useDeprecatedNdk=true
的文件 gradle.properties 。
还要确保已安装NDK。您应该将NDK目录的路径提供为 local.properties 文件ndk.dir=PutYourNdkPath
。