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 trialROBERT RUBY II
10,586 PointsCannot get setAdapter to be resolved from a recycler view
Please see stackoverflow where I provide full code for each file...
Stack overflow link - > https://stackoverflow.com/questions/57584690/recyclerview-setadapter-not-being-resolved
I utilized the Stormy example in the course Android Lists and Adapters found at this link https://teamtreehouse.com/library/android-lists-and-adapters-2
In the course it works like a charm but I get stopped in my tracks... thinking it may have something to do with androidx. Unsure.
1 Answer
ROBERT RUBY II
10,586 PointsSo the issue was that I migrated the project over to androix but never changed the RecyclerView to support androix method. So in the build folder my generated binding class was trying to us android.support.v7..... in place of androidx.recyclerview.....
So what fixed this was updating the XML then running Invalidating the Chache / Restart...
Whala all fixed up.