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

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