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

gradle 'funfacts' project refresh failed

Error:Could not download artifact 'com.android.tools.build:gradle:0.12.2:gradle.jar': No cached version available for offline mode. how to fix this error please please told me .

Well first of all double check if you have internet connection. Than you can try going Preferences->Gradle->Offline work and uncheck it

4 Answers

Ok try closing android studio and than go to user home directory and rename .gradle folder to something else. Than turn on studio again and rebuild project.

Well first of all double check if you have internet connection. Than you can try going Preferences->Gradle->Offline work and uncheck it

i have done this but nothing happened

oh yes it works thanks for your .it is highly appreciating