将 Android Studio 更新到 1.3.0 版后,我收到“当前插件中不推荐使用 NDK 集成"错误 [英] After updating Android Studio to version 1.3.0 I am getting "NDK integration is deprecated in the current plugin" Error

查看:23
本文介绍了将 Android Studio 更新到 1.3.0 版后,我收到“当前插件中不推荐使用 NDK 集成"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在 3 天前将我的 Android Studio 更新到版本 1.3.0.

在那之前我可以使用 NDK,现在我收到了类似的错误,

<块引用>

错误:(50, 0) 错误:NDK 集成在当前插件中已被弃用.考虑尝试新的实验性插件.详情请参见

并重建您的项目.就是这样.

I have updated my Android Studio to version 1.3.0 before 3 days.

Before that I can use NDK and now I am getting error like ,

Error:(50, 0) 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.

I can not find file gradle.property at project level.

How can I solve this error?

解决方案

Here is how to solve this issue :

  1. add gradle.properties file to root folder of your project
  2. add 'android.useDeprecatedNdk=true' to gradle.properties file

Here is my gradle.properties :

# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

android.useDeprecatedNdk=true

And add it to root of your project :

And rebuild your project. Thats it.

这篇关于将 Android Studio 更新到 1.3.0 版后,我收到“当前插件中不推荐使用 NDK 集成"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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