配置并行编译解决Gradle编译慢

创建时间:2018/7/10 23:38:31
关键字:parallel Offlinework

1.gradle.proerties 文件

org.gradle.jvmargs=-Xmx2048m
org.gradle.parallel=true
org.gradle.configureondemand=true

2.settings  ->Build ->Compile

勾选 compile independent modules in parallel

3.settings  ->Build ->Gradle

勾选 Offlinework