Android Studio 中的 NDK 集成 [英] NDK integration in Android studio

查看:35
本文介绍了Android Studio 中的 NDK 集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我将我的 android studio 更新到 1.3 并且我在 local.properties 中输入 NDK(android-ndk-r10e NDK 版本)路径 (ndk.dir=C:\AndroidNDK\android-ndk-r10e\android-ndk-r10e) 但我收到了这个错误.

Today I updated my android studio to 1.3 and I enter the NDK (android-ndk-r10e NDK version) path in local.properties (ndk.dir=C:\AndroidNDK\android-ndk-r10e\android-ndk-r10e) but I got this error.

错误:任务:app:compileDebugNdk"的执行失败.

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

错误:NDK 集成在当前插件中已弃用.考虑尝试新的实验性插件.详情请参见 http://tools.android.com/tech-docs/new-构建系统/gradle 实验.在 gradle.properties 中设置android.useDeprecatedNdk=true"以继续使用当前的 NDK 集成.

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 "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.

请帮我解决这个问题

推荐答案

gradle.properties 中设置 android.useDeprecatedNdk=true 以继续使用当前的 NDK 集成.

Set android.useDeprecatedNdk=true in gradle.properties to continue using the current NDK integration.

您只需要按照错误中给出的说明进行操作即可.

You just have to follow the instruction which is given to you in the error.

这篇关于Android Studio 中的 NDK 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆