I used Gradle Daemon to build Android project from the command line and noticed it was quite fast. But Android Studio seems a bit slow compared to the command line, so that got me wondering: Is Android Studio using Gradle Daemon to speed up builds or is something else that's slowing them?
Asked
Active
Viewed 1,725 times
1 Answers
3
Create a file with the name "gradle.properties
" in the following directory:
- /home/<username>/.gradle/ (Linux)
- /user/<username>/.gradle/ (Mac)
- %USERPROFILE%\.gradle (Windows)
And inside of it, you have to add this line:
org.gradle.daemon=true
Furthermore, you can add the following line to improve the speed a little:
org.gradle.parallel=true
You have more information on speed-up-gradle.

MRS1367
- 1,053
- 1
- 14
- 40

Skizo-ozᴉʞS ツ
- 19,464
- 18
- 81
- 148
-
1My question is does AndStu use GradDae by default ? Or should I use what you said ? – Mehdiway Jun 09 '15 at 11:06
-
This works for me, and it goes fast. – Skizo-ozᴉʞS ツ Jun 09 '15 at 11:07
-
1Did this speed up your gadle? – Skizo-ozᴉʞS ツ Jun 09 '15 at 11:18
-
1I was already doing this. What I wanted to know is [copy paste above] – Mehdiway Jun 09 '15 at 13:45
-
Don't get you @Mehdiway – Skizo-ozᴉʞS ツ Jun 09 '15 at 18:18
-
What @Mehdiway was trying to ask was does Android Studio enable the gradle daemon by default. On Gradle documentation it says that some IDEs may this already enabled. Does Android Studio have it enabled? : https://docs.gradle.org/current/userguide/embedding.html#sec:embedding_daemon – Marvin Oct 28 '16 at 20:10