android.useDeprecatedNdk=true 添入工程根目录下的新建 gradle.properties 文件

来源:互联网 发布:python 字典值为空 编辑:程序博客网 时间:2024/05/21 08:13

build.gradle添加下面语句后出现错误NDK integration is deprecated in the current plugin.  的处理方法

ndk {    abiFilters "armeabi"}


Error:(12, 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.


解决如上问题只需如下两步:


1. 添加 gradle.properties 文件到工程的根目录下。
android.useDeprecatedNdk=true 添入工程根目录下的新建 gradle.properties 文件中


2. 添加 android.useDeprecatedNdk=true 到该 gradle.properties 文件中。
gradle.properties 文件内容仅此如下一句:

android.useDeprecatedNdk=true

然后,重新编译你的工程。
参见:https://github.com/wzhnsc/TestNDKUpdataUI

0 0
原创粉丝点击