The `android.dexOptions.incremental` property is deprecated and it has no effect on the build proces

    Android Studio 升级到3.1之后,项目编译报The `android.dexOptions.incremental` property is deprecated and it has no effect on the build proces这个错误。

解决办法:

    删除Gradle里面的以下代码

            dexOptions {

                    incremental    true

                    javaMaxHeapSize    "4g"

            }

你可能感兴趣的:(The `android.dexOptions.incremental` property is deprecated and it has no effect on the build proces)