12

I updated my android studio to the new version 2.3 and was asked to convert my project to match the new formats which I did. I was asked to update the gradle version too and I did. Now one eternity later it's still refreshing my project gradle. I've restarted it several times and I have active internet connection. Any suggestions

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Norris Boateng
  • 357
  • 1
  • 5
  • 18

7 Answers7

6

This method works for Me :

Change Gradle Home Path as C:\Program Files\Android\Android Studio\gradle\gradle-3.2

To Open Gradle Home Setting :

Settings->Build,Execution,Deployment->Gradle->Gradle Home

Screen Shot

RAJESH KUMAR ARUMUGAM
  • 1,560
  • 21
  • 35
3

It depends sometimes on what are you building. As Hamid said, it´s a must do working Offline, it greatly reduces times, or at least it did not that long ago.

Also checkout that you are not building google APIs that you are not using, be careful with google's play-services or maps, they sometimes take a bunch of time and maybe you are not using them.

If that's an option, install Android Studio in a SSD, don't buy one, but if you have it, consider moving it, it reduced my gradle about 90%.

Also, check this, a bit old, but may help.

Community
  • 1
  • 1
Mese
  • 807
  • 1
  • 12
  • 26
2

Could be caused by Microsoft Defender. Check if msmpeng.exe is running in task manager and exclude Android directory.

Macallan
  • 21
  • 1
1

using default gradle wrapper and disconnecting from my corporate network to a 4G network solved my problem

cahit beyaz
  • 4,829
  • 1
  • 30
  • 25
0

File> Settings> Build, Execution, Deployment> Gradle> and check the Offline work

Hamid Goodarzi
  • 1,364
  • 2
  • 13
  • 22
0

If you have an failed for sync gradle. Such as; Gradle sync failed: Minimum supported Gradle version is 3.3. Current version is 3.2.

  1. Download Gradle supported version manually.
  2. Uncheck "Use default gradle wrapper (recommended)"
  3. Check "Use local gradle distribution" and set Gradle home path.
  4. Check offline work.
abalta
  • 1,204
  • 1
  • 12
  • 21
0

Updating the gradle path in

File > Settings > Build, Execution, Deployment > Gradle

worked for me. The problem occured after updating Android Studio.

Raza
  • 81
  • 6