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

Karan Kumar
Karan Kumar
3,830 Points

Can't access binding class (HourlyListItemBinding)

Error: cannot find symbol class HourlyListItemBinding

I do have hourly_list_item.xml in res/layout, but I am unable to refer to HourlyListItemBinding from within HourlyAdapter.java

HourlyAdapterJava source code: https://pastebin.com/cGirB0UG hourly_list_item.xml code: https://pastebin.com/ua75acRH

Any ideas why? Any help is much appreciated

1 Answer

Karan Kumar
Karan Kumar
3,830 Points

Solved. Missing import. The quick fix didn't suggest that, like in the video, but I added the import manually and it works now