Android Studio and gradle 's slow build time, what to do in the mean time?

350 views Asked by At

Hello to all my lovely Android Developer

I have been building android apps with Android Studio for around 8 months now, everything is great except that the build time with Gradle is SUPER SLOW, even tho there are options in gradle to speed things up a bit, it is still extremely slow if you were to ask me.

I am wondering what are everyone's solution to this problem and what is everyone doing during compile time?

Cheers have a good one

1

There are 1 answers

1
Anil Meenugu On

Definitely makes a difference: https://www.timroes.de/2013/09/12/speed-up-gradle/

Just create a file named gradle.properties in the following directory:

/home/<username>/.gradle/ (Linux)
/Users/<username>/.gradle/ (Mac)
C:\Users\<username>\.gradle (Windows)

Add this line to the file:

org.gradle.daemon=true

Building and running app via Gradle and Android Studio is slower than via Eclipse