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 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:
         https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml
         https://jcenter.bintray.com/com/android/support/support-v4/
     Required by:
         Exemplo:app:unspecified

What can i do to solve this situation?

Thanks..

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!