Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - How can we make an app compile faster? [duplicate]

I am building an android app with android studio.

In the process I am also implementing facebook login, which requires me to put a folder's worth of code into my project, among other compile-time libraries.

Each time that I compile (and run) my app while testing it, it is currently taking 3 minutes to compile!

I want to know if there is a way to specify that unmodified classes do not need to be recompiled? I am trying to speed up my build time so that I can be more productive.

Any other advice on how to make my project build faster for testing / debugging / release?

Thanks.

like image 711
user198923 Avatar asked Sep 30 '14 18:09

user198923


1 Answers

In gradle.properties, add the following two lines:

org.gradle.daemon=true
org.gradle.parallel=true
like image 66
Code-Apprentice Avatar answered Sep 18 '22 11:09

Code-Apprentice