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

Android

What is this gradle error?

After my project was working fine, I went to build it and started getting this error:

Error:A problem occurred configuring root project 'FunFacts'.

Could not resolve all dependencies for configuration ':classpath'. Could not find any version that matches com.android.tools.build:gradle:0.12.+. Required by: :FunFacts:unspecified

I don't think I changed anything so it seems odd. I really don't want to start over from the beginning of the project so any input would be appreciated.

timprometheus
timprometheus
2,439 Points

I'm experiencing this Error as well, but only since today, witch leads me to hypothesize that its sort of an update - caused Error (At least from taking a look at the date you posted it...) It really annoys me too, so I hope that someone can help.

I found that by upgrading to the newest version of Android Studio that this problem went away. Also, I've had various other gradle issues since then. Most notably I had to reinstall AS because of an unrelated malware issue, and when I tried to reopen my project, gradle was not happy. I got around this by deleting the .gradle folder in C:\Users(whatever your username is) and this fixed the problem. Deleting the folder caused gradle to be repopulated so maybe this is something you could try.