android.dexOptions.incremental property is deprecated

社会主义新天地 提交于 2019-11-27 14:33:42

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.

Changes in Gradle 2.1.0-rc1 (2016/4/22) or later.

1. Remove deprecated dexOptions.incremental. Incremental Java compilation is ON by default.

2. No need to write jumboMode too, Jumbo mode is ON by default in instant-run mode.

First stable v2.1.0 (2016/4/26)

Visit official gradle site for more details

Edit: 27/01/2017

Instant Run changes

Android Studio 2.3 Canary 3 and newer has change to how Instant Run works.

Applying changes to a running applications is no longer tied to the

Run button. The Run button will now always perform an application restart. To apply code and resource changes in the running process, there is a new

button right next to it, "Apply Changes", which attempts to hotswap the changes into the app. -> ref

So that jumboMode may not effect from run button. thanks

Solve Problem after removing deprecated

dexOptions { incremental true }

Incremental Java compilation is ON by default.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!