Launch Gradle Build A Very Long Time

everything! After the last update, Studio became very long (3-40 minutes) "Launch Gradle Build" before launching the application. How to treat him? Current Studio Version: 1.3.2

+5
source share
2 answers

Firstly,

Allow Gradle to work offline : Go to File > Settings > Build, Run , Deploy > Build Tools > Gradle . Then, on the Global tab, Gradle Settings, check Offline .

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

Hope this helps.

+3
source

In gradle.properties

use the following:
 org.gradle.parallel=true org.gradle.daemon=true org.gradle.jvmargs=-Xms256m -Xmx1024m 

org.gradle.parallel especially useful if your project consists of several projects. Gradle will do the job in parallel creating these decoupled projects.

org.gradle.daemon No need to start the daemon after it starts. Rebuilding cuts "boot up". Thus, faster assembly time.

0
source

Source: https://habr.com/ru/post/1232609/


All Articles