android: data binding error: cannot find symbol class

后端 未结 26 2971
生来不讨喜
生来不讨喜 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 06:17

    Your problem might actually be on this line:

    
    

    Android Studio gets a little confused at time and takes the include layout for the layout tag. What's even more frustrating is that this could work the first time, fails to work with a modification on the Java/Kotlin code later, and then work again after a tweak that forces it to rebuild the binding. You may want to replace tags with something that populates it dynamically.

提交回复
热议问题