Wednesday, October 28, 2015

Why my Android studio is so slowlly?

referrence Link http://stackoverflow.com/questions/30024910/android-studio-1-2-gradle-is-very-slow


The first step:
you can set your gradle is type: offline

The second step:
you should make a file: name 


 I have seen people use, but which I have not used yet is to create agradle.properties in the gradle folder like so:

The third step:
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

=====================================

Other method:

What I did was to change the global gradle settings to offline work which can be done by going to Preferences => Gradle. This did make a difference.

you can see the iamge:

the before:


the later:

when you din't change your code. The gradle build is so fast.But when you change your code one line or more line. The gradle will build like before! do you know!


No comments:

Post a Comment