[Solved] Gradle Sync Failed Error-Gradle Sync Failed Error in android studio,android app development ,android studio error
Method-1
- Go to File option->Click Invalidate caches / Restart
- Shutdown robot Studio
- Rename/remove .gradle folder within the user home directory
- Restart robot Studio let it transfer all the Gradle stuff it wants
- Gradle build success !
Rebuild project.... success !
Method-2
- Remove gradle and .gradle folders from your android project folder.
- In robot Studio: Open your project then:
- File --->Go to settings --->Go inside compiler --->Go inside gradle:Then click offline mode
Note---> In comparatively newer robot Studios, Offline mode has been affected to gradle setting.
- Close your project: File -> shut project
- Connect to the net and open your project once more then let robot Studio downloads what it desires
If not success then follow these steps
- If you encounter gradle project adjust failed again please follow these steps:
- Download the newest gradle package from this directory
- Extract it and place it somewhere (for example f:gradle-1.10)
- Go to your robot Studio and cargo your project then open File->Settings->gradle, during this page click on Use native gradle distribution
- Type your gradle folder address there
Congratulation you're done!
Method-3
- File -> Go to Settings option-> Then Gradle Set 'Use default Gradle wrapper.'
Method-4
- Open File-> Settings
- Choose Gradle
- Mark "Use native grandle distribution" and choose the trail of grandle home for ex: C:/Users/high_hopes/.gradle/wrapper/dists/gradle-2.1-all/27drb4udbjf4k88eh2ffdc0n55/gradle-2.1.1 then select service directory path C:/Users/high_hopes/.gradle
- Apply all changes
- Open File-> invalidate caches/ restart ..
- Select simply Restart
EmoticonEmoticon