首页 > 移动平台 > 详细

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

时间:2018-10-04 01:20:44      阅读:211      评论:0      收藏:0      [点我收藏+]

现象截图

技术分享图片

问题原因&解决方案

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

原文:https://www.cnblogs.com/whycxb/p/9661285.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!