WARNING: DSL element 'DexOptions.incremental' is obsolete and will be removed at the end of 2018.

报错如下:DSL element ‘DexOptions.incremental’ is obsolete and will be removed at the end of 2018.
是因为我项目用了incrementaldexOptions { //multiDex的一些相关配置,这样配置可以让你的编译速度更快 preDexLibraries = false //让它不要对Lib做preDexing incremental true //开启incremental dexing,优化编译效率,这个功能android studio默认是关闭的。 javaMaxHeapSize “4g” //增加java堆内存大小}
incremental这个将在2018年后被弃用,故我直接删掉incremental就好了

你可能感兴趣的:(WARNING: DSL element 'DexOptions.incremental' is obsolete and will be removed at the end of 2018.)