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?
I had the same issue. I just updated my android studio to 2.0 on ubuntu 14.04. This issue arose for one of the project and it was solved through a answer here which seems unrelated to this problem !!
If you are using Android Studio 2.0 Beta, this issue might appear (more likely if you are working on NTFS filesystem) and it seems like the "Instant Run" is the culprit. Search for "Instant Run" in settings and uncheck the box
Posting here to an old question - maybe somebody else might me stuck on this aswell.
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 distribution
Restart your computer
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.
if gradle has downloaded correctly and you just have problem with this project, follow these steps:
Note: if android studio didn't restarted, kill it's process in Task Manager.
Some other solutions:
These steps work for me :
org.gradle.daemon=true org.gradle.parallel=true
As this answer suggests, Removing .gradle directory from home helps solving this problem in some cases.