Android studio 0.4.2: Gradle project sync failed error
Solution 1:
File -> Invalidate caches / Restart
Shutdown Android Studio
Rename/remove .gradle folder in the user home directory
Restart Android Studio let it download all the Gradle stuff it needs
Gradle build success !
Rebuild project.... success !
Out of curiousity I compared the structure of the old .gradle and the new one... they were pretty different !
So I'll see how 0.4.2 goes :)
Solution 2:
I had same problem but finally I could solve it forever
Steps:
Steps:
- Delete
gradle
and.gradle
folders from your project folder. - In Android Studio: Open your project then: File -> settings -> compiler -> gradle: enable
offline mode
Note: In relatively newer Android Studios, Offline mode has been moved to gradle setting. - Close your project: File -> close project
- Connect to the Internet and open your project again then let Android Studio downloads what it wants
If success then
else
:)
else
- If you encounter
gradle project sync failed
again please follow these steps: - Download the latest gradle package from this directory
- Extract it and put it somewhere (for example f:\gradle-1.10)
- Go to your Android Studio and load your project then open File->Settings->gradle, in this page click on
Use local gradle distribution
- Type your gradle folder address there
Congratulation you are done!
Android studio 0.4.2: Gradle project sync failed error
Reviewed by Anonymous
on
June 28, 2017
Rating:
No comments: