Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


piyush arora
piyush arora
5,735 Points

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."
piyush arora
piyush arora
5,735 Points

Thanks Mohammed for the help!!