Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android studio is stuck at refreshing gradle project

I updated my android studio few days ago to version 2.1 and now whenever I open a project in it or import a project it says in the bottom refreshing 'project name' gradle project I waited four hours for it to refresh but it not moving further help me out with this because i need my android studio normal any help would be much appreciated thank you in advance. Here is the image of my problem

like image 314
Ruby prO Avatar asked May 10 '16 11:05

Ruby prO


People also ask

Why is my gradle not syncing?

Resolution is simple. Open the "Android SDK Manager", update all packages and then restart your Android Studio. After that you project should compile without any issues.


2 Answers

I experienced a similar problem after updating my android studio and fixed it by pressing ctr+alt+s then selecting the gradle tab and fixing the location of my local gradle distribution. somehow after the update the location changed from the correct

"D:/Program Files/Android/Android Studio/gradle/gradle-2.14.1" to

"D:/Program Files/Android/Android Studio/gradle"

like image 160
mungujn Avatar answered Sep 25 '22 13:09

mungujn


Try deleting all the .lock & .lck Files from .gradle directory from your home folder and rebuild

steps

  1. search for .lock files in C:\Users{USER}.gradle
  2. select and delete them all
  3. search for .lck files in C:\Users{USER}.gradle
  4. select and delete them all
like image 21
Ahmed Salama Avatar answered Sep 22 '22 13:09

Ahmed Salama