Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Gradle Sync Failed!!

So i am getting this error...Gradle Sync Failed...and in the messages pane it shows... Error:Could not run build action using Gradle installation 'C:\Program Files\Android\Android Studio\gradle\gradle-2.2.1'

I built the project yesterday and it worked fine...Not able to figure out the problem...Kindly help!!

2 Answers

Mohammed Fahad Kaleem
Mohammed Fahad Kaleem
998 Points

Hello, Follow these steps...

  1. Uninstall Android Studio
  2. Go to C:\Users\username and delete the .gradle folder. Infact delete all the folders related to Android Studio
  3. Install Android Studio again.

The problem should be solved. I had the same issue and I tried uninstalling and installing Android Studio several times but it didn't help. Deleting the .gradle folder and other Android Studio related folders and then installing back solved the problem.

this did not eliminate the sync error for me. Any other suggestions? After doing it I am still getting the error. The message is:

"Gradle DSL method not found:'runProguard()' Possible causes:

  • The project 'Interactive Story' may be using a version of Gradle that does not contain the method.
  • The build file may be missing a Gradle plugin."

Thanks Mohammed for the help!!