android: data binding error: cannot find symbol class

后端 未结 26 2977
生来不讨喜
生来不讨喜 2020-12-14 05:49

I am getting started for using DataBinding feature. I am facing problem with it.

Error:(21, 9) error: cannot find symbol class ContactL

26条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-14 05:51

    You need to add the tags into your Activity's Xml Layout.

    
    
        
            
        
    
        
    
    

    and then, add an android:id into your tag

    After that, you'll have a ActivityContactListBinding object and you can access and bind variables on your included layouts.

提交回复
热议问题