Saturday, August 30, 2014

How to solve Gradle project sync failed error in Android Studio

Before Android Studio I was using MotoDev an android IDE by Motorola. But, I found Android Studio which was developed on IDEA. Whenever we create a new project using Android Studio it develops on Gradle. A very common problem with Gradle that if we don't have internet then it fails building your project and gives an exception:

 Gradle project sync failed error
This error caused because it always try to find libraries over Internet and when it fails to find the dependencies then it fails. So, in order to execute you project offline you must need to fix this project setup.


  • Click on Invalidate Caches/Restart from the File Menu



  • Click on Invalidate and Restart



  • Let it download all the Gradle stuff it needs once, Gradle build success !
  • Rebuild project. After successful build of the project you may able to build your project offline.

No comments:

Post a Comment