User avatar
AndroidBlackhat
Site Admin
Posts: 342
Joined: Mon Apr 24, 2017 1:00 am
Location: ThisIsMe

Making gradle faster with simple trick

Thu May 11, 2017 2:22 am

file local.properties in your project:

org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.configureondemand=true

add these lines and you have unchained all CPU cores for gradle processing, speed boost is impressive and many people forget about it

in normal settings, studio is using only one core, even with your i5 should help, I have quad i7 and difference is like change multipla for ferrari :)

Anteos
Global Moderator
Posts: 94
Joined: Mon May 08, 2017 11:59 am

Re: Making gradle faster with simple trick

Sat May 13, 2017 6:49 am

According to your experience, Studio is more brutal on CPU or on RAM?
I had repeatedly had problems with my laptop (running with only 4GB of RAM) so months ago I stopped trying to use Android Studio.

Maybe it is worth trying this trick with CPU - I never looked into it in depth because I thought my RAM sucks anyway.

User avatar
AndroidBlackhat
Site Admin
Posts: 342
Joined: Mon Apr 24, 2017 1:00 am
Location: ThisIsMe

Re: Making gradle faster with simple trick

Sat May 13, 2017 6:51 am

Ram? 6gb minimum :D if you want multiaccounting + virtualbox 8gb is not enough:P

Anteos
Global Moderator
Posts: 94
Joined: Mon May 08, 2017 11:59 am

Re: Making gradle faster with simple trick

Sat May 13, 2017 7:21 am

AndroidBlackhat wrote:
Sat May 13, 2017 6:51 am
Ram? 6gb minimum :D if you want multiaccounting + virtualbox 8gb is not enough:P
I should be looking for a new PC sometime soon : :x

User avatar
AndroidBlackhat
Site Admin
Posts: 342
Joined: Mon Apr 24, 2017 1:00 am
Location: ThisIsMe

Re: Making gradle faster with simple trick

Sat May 13, 2017 7:44 am

yeah... i want to buy mac mini 2012 (quad core i7+16gb ddr3) last mac with possibility to upgrade your hardware

Anteos
Global Moderator
Posts: 94
Joined: Mon May 08, 2017 11:59 am

Re: Making gradle faster with simple trick

Sat May 13, 2017 7:51 am

Are you going to try iOS? If not, how come MAC?

User avatar
AndroidBlackhat
Site Admin
Posts: 342
Joined: Mon Apr 24, 2017 1:00 am
Location: ThisIsMe

Re: Making gradle faster with simple trick

Sat May 13, 2017 8:30 am

Yes, thats why mac ;)

Return to “Android Development”