android stuido build 慢的解决办法

Enable Offline Work:

  1. Click File -> Settings. Search for "gradle" and click in Offline work box.
  2. Go to Compiler (in same settings dialog just below Gradle) and add --offline to Command-line Options text box.

Improve Gradle Performance

Add following two line of code in your gradle.properties file.

org.gradle.daemon=true
org.gradle.parallel=true
原文地址:https://www.cnblogs.com/lianghui66/p/5477080.html