0

When I build a project in the Android Studio, it takes a long time (6 minutes). I tried with this and make server proxy offline but doesn't work. Is there another way to resolve this problem. help please

Community
  • 1
  • 1
Joness
  • 1
  • 3
  • Use only those entry in the gradle file..that are useful like for the google map , you shoul not use the all the google play service instead of map service of google play..it will reduce half time for running and compliling – Ravindra Kushwaha Mar 09 '16 at 10:20
  • You should not make it offline. Try to setup proxy if you are behind proxy or firewall. – T D Nguyen Mar 09 '16 at 10:25

2 Answers2

2

Go to .gradle folder (C:\Users\your_user_name.gradle).

Create a gradle.properties file (if it does not exist).

Add these lines in it

org.gradle.configureondemand=true
org.gradle.daemon=true
org.gradle.parallel=true
Ramesh R
  • 329
  • 1
  • 6
  • I found the solution, the probleme is in the file build.gradle when i added compile "com.google.android.gms:play-services:8.4.0" but in my case i want just compile "com.google.android.gms:play-services-gcm:8.4.0". PS :the package compile "com.google.android.gms:play-services:8.4.0" make your build very slow :) – Joness Mar 10 '16 at 13:35
  • How can I do this on mac? – Kim Montano May 22 '16 at 07:26
0

You can use paid android studio plugin called JRebel

or Update to new android studio (Android Studio Canary Build: 2.0 Preview Beta 6)

But First run will always takes time to load even you use any of above.

You can also try to increase the heap size of memory Click here for more info

Community
  • 1
  • 1
Bijesh P V
  • 798
  • 7
  • 14