Updated Android studio to 1.2.2 and the background process wont end.(Refreshing 'MemoryCards' Gradle project).
It has been more than an hour now and its still busy?
Is this normal and why is it taking this long? its a small app.
Here is my idea.log : https://www.dropbox.com/s/syf12m3lxbww5k7/idea.log?dl=0
Update:
Disabled my proxy settings in android studio and the refreshing process continued and showed me the following.
It failed at the download of the gradle zip :
So the reason I think that It takes this long it was trying to download the gradle zip file +- 60 Mb and my internet connection is slow...
So the process continues when I disable the proxy settings but then it cant download the gradle zip file... ? so it fails again.
Update :
I used another Internet source and it downloaded the gradle and the process continued.
If you get a connection timed out error this is usually a problem of proxies. Try disabling them if you are using proxies.
Also, when gradle is stuck, deleting the
.gradle
folder inc:\Users\
always helped me.These steps work for me :
As this answer suggests, Removing .gradle directory from home helps solving this problem in some cases.
This happened to me quite a few times and there is no single solution.You should try some of the solutions mentioned below.
File -> Invalidate Caches / Restart
Select the correct Gradle distribution by going to
Settings/Preferences -> Build,Execution, Deployment -> Gradle
and select the path for local Gradle distributionRestart your computer
In my case, I download Gradle zip from the web site, and set the gradle local home, enabled offline work. Then "file" menu -> restart. It worked for me.
I run into this problem on Windows 7 after an update of the Android studio and this works for me:
Run the Android Studio with Administrative Privileges.