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
MUZ140773 Freedom Mahwenyiyo
4,562 PointsAndroid Lists and Adapters
When l try to sync project with gradle files, The following error comes up. Please Help "error (27, 13) Failed to resolve: com.android.support:recyclerview-v8:21.0.2 "
1 Answer
Harry James
14,780 PointsHey there!
Sorry for my late response - I've been incredibly busy with exams over the past couple of weeks.
If you're still having a problem with this, you need to include this line in Gradle to get the RecyclerView from the v7 support library:
compile 'com.android.support:recyclerview-v7:22.0.0'
Hope it helps and if there's anything else, give me a shout :)