Android Studio升级到3.1.4后打开旧项目警告:The `android.dexOptions.incremental` property is deprecated and it has no effect on the build process.

2022-11-23,,,,

现象截图

问题原因&解决方案

在build.gralde中,对Android开发过程中突破的方法数的限制,做了如下解决配置:

    dexOptions {
incremental true
javaMaxHeapSize "8g"
}

这个配置在Android Studio之前的版本中是默认关闭的,现在android studio在不断优化,更新之后貌似不需要再特意配置了,直接删除即可。

备注:当然了,这个只是警告,不影响运行。所以也可以不用管。

参考资料

Android studio更新后出现警告:Warning:The `android.dexOptions.incremental` property is deprecated and it has

Android Studio升级到3.1.4后打开项目警告:The `android.dexOptions.incremental` property is deprecated and it has no effect on the build process.的相关教程结束。

《Android Studio升级到3.1.4后打开旧项目警告:The `android.dexOptions.incremental` property is deprecated and it has no effect on the build process..doc》

下载本文的Word格式文档,以方便收藏与打印。