Norris Boateng
Norris Boateng

Reputation: 357

Android studio 2.3 refreshing gradle project taking forever

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

Upvotes: 12

Views: 8523

Answers (7)

Raza
Raza

Reputation: 91

Updating the gradle path in

File > Settings > Build, Execution, Deployment > Gradle

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

Upvotes: 0

abalta
abalta

Reputation: 1257

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.

Upvotes: 0

cahit beyaz
cahit beyaz

Reputation: 5117

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

Upvotes: 1

RAJESH KUMAR ARUMUGAM
RAJESH KUMAR ARUMUGAM

Reputation: 1570

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

Upvotes: 6

Macallan
Macallan

Reputation: 21

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

Upvotes: 2

Mese
Mese

Reputation: 887

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.

Upvotes: 3

Hamid Goodarzi
Hamid Goodarzi

Reputation: 1394

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

Upvotes: 0

Related Questions