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.

问题原因&解决方案

在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.

上一篇:689. Maximum Sum of 3 Non-Overlapping Subarrays


下一篇:docker with devicemapper storage driver