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.

Android Build a Blog Reader Android App Exploring the Master-Detail Template Creating a Project Using the Master-Detail Template

Miguel Martin
Miguel Martin
21,703 Points

Creating this project on Android Studio and gradle fails to sync..

I am starting this course and i am using the Android Studio, but when i create the app using the Master Template (or any other rather than the blank one), i receive this error on gradle sync:

Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not find any version that matches com.android.support:support-v4:21.+.
     Searched in the following locations:
     Required by:

What can i do to solve this situation?


2 Answers

Try installing the examples in the sdk manager. Not positive but the templates might be included in the example section. Either way it is a good idea to install the latest sdk anyway.

Miguel Martin
Miguel Martin
21,703 Points

I had the latest sdk installed, but there was something missing that i don't know what it was...i re-installed android studio and works fine now..

Thanks Ryan!

Glad I could help! I would really appreciate it if you could click on Best Answer on the forum for me. I need the points for the career program. Thanks!