不推荐使用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.
更多推荐
发布评论