不推荐使用android.dexOptions.incremental属性(android.dexOptions.incremental property is deprecated)

编程入门 行业动态 更新时间:2024-10-27 12:28:38
推荐使用android.dexOptions.incremental属性(android.dexOptions.incremental property is deprecated)

当试图运行gradle build时,我在Android Studio 2.2中得到以下警告:

警告: android.dexOptions.incremental属性已被弃用,对构建过程没有影响。

在build.gradle文件中,我已经声明了dexOptions

dexOptions { incremental true jumboMode = true }

如果不建议使用,那么这个属性的替代选项是什么。

When trying to run gradle build, I get following warning in Android Studio 2.2 :

Warning:The android.dexOptions.incremental property is deprecated and it has no effect on the build process.

In build.gradle file here I have declare dexOptions

dexOptions { incremental true jumboMode = true }

If it is deprecated then what is the alternate option of this attribute.

最满意答案

默认情况下, incremental将在2.1.0-rc1(2016/4/22)或更高版本中启用Java编译。 所以它的冗余在build.gradle文件中声明它。

By default incremental is turned on Java compilation in 2.1.0-rc1 (2016/4/22) or later. So its redundant to declare it in build.gradle file.

更多推荐

本文发布于:2023-08-07 19:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465921.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:推荐使用   属性   android   incremental   dexOptions

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!