Andriod Studio下ndk出现需要在gradle.properties中添加$USE_DEPRECATED_NDK = true的问题解法
来源:互联网 发布:js中的radio length 编辑:程序博客网 时间:2024/06/05 22:45
Android Studio版本:Android Studio 2.2
系统: win10 64 专业版
NDK版本:android-ndk-r14b(自己下载安装)、android-ndk-r12b-windows-x86_64(自己下载安装)、ndk-bundle(Android Studio中下载)3者均测试有效
根据网上的教程,有时候会出现如下的错误:
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.
解决的方法是在gradle.properties文件中添加一行代码:
android.useDeprecatedNdk = true而不是按提示中的增加
$USE_DEPRECATED_NDK = true但是增加
android.useDeprecatedNdk = true后可能还是会出现一样的提示。这是因为没有同步gradle.properties文件的修改。这时候需要右键点击gradle.properties文件,选择Synchronize'gradle.properties',然后再次运行就不会有相同的错误提示了。
0 0
- Andriod Studio下ndk出现需要在gradle.properties中添加$USE_DEPRECATED_NDK = true的问题解法
- Andriod studio中出现Connection reselt问题以及gradle问题
- android.useDeprecatedNdk=true 添入工程根目录下的新建 gradle.properties 文件
- android.useDeprecatedNdk=true 添入工程根目录下的新建 gradle.properties 文件
- android.useDeprecatedNdk=true 添入工程根目录下的新建 gradle.properties 文件
- android.useDeprecatedNdk=true 添入工程根目录下的新建 gradle.properties 文件
- RecycleView的使用总结(需要在gradle中添加依赖)
- andriod中一些需要注意的问题
- Gradle在Android studio中遇到的问题
- 在AndroidStudio中使用gradle构建出现的一些问题
- Android Studio的gradle下配置ndk,jni
- andriod studio 在open项目时卡在Building gradle project info的解决方案
- Android Studio在使用NDK时出现的莫名其妙的问题
- Android Studio中使用properties配置文件出现中文乱码问题
- Android Studio 2.2 在已有项目中添加NDK
- 在Android Studio中使用androidannotations(安卓注解)的方法(通过Gradle添加)
- Android Studio如果添加的是aar,要在gradle中,后面加上@aar
- Andriod Studio中出现找不到…
- 动态规划练习一—2最大子矩阵
- hdu4507 (求平方和的数位dp)
- 一切开始于此
- 基于Java语言的安卓编程之二十短消息发送
- 使用WebView.load(data,"text/html", "utf-8")加载显示乱码问题分析
- Andriod Studio下ndk出现需要在gradle.properties中添加$USE_DEPRECATED_NDK = true的问题解法
- 安装yum
- ubuntu下JDK配置
- linux 压缩解压归档
- HDOJ 1074 Doing Homework (状压DP)
- C++ void指针解析
- Android中通知栏的使用
- 传奇服务端各文件用途说明
- java生成解析二维码