5

everyone! After the latest update, the Studio has become a very long run (3-40min) "Running Gradle Build" before running the application. How is it treated? The current Studio version: 1.3.2

2 Answers2

3

Firstly,

Allow Gradle to work offline : Go to File > Settings > Build,Execution,Deployment > Build Tools > Gradle. Then, in Global Gradle Settings tab, tick Offline Work.

Then, you can also tell Gradle to use a daemon : Just add org.gradle.daemon=true this line in the gradle.properties file.

Hope this helps.

0

Use the following in your gradle.properties

org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m

org.gradle.parallel especially useful if your project consists of more than one project. Gradle will execute task in building these decoupled projects in parallel.

org.gradle.daemon no need to startup the daemon once it's up. Rebuilding will cut the "boot up" off. Thus, a faster build time.

Fadils
  • 1,508
  • 16
  • 21