5

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?

Will
  • 22,773
  • 13
  • 90
  • 102
Mehdiway
  • 9,500
  • 7
  • 33
  • 68

1 Answers1

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,024
  • 1
  • 13
  • 40
Skizo-ozᴉʞS
  • 18,460
  • 17
  • 76
  • 134