android: data binding error: cannot find symbol class

后端 未结 26 3055
生来不讨喜
生来不讨喜 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:00

    For me it was an error in the layout xml binding, I had

    app:setNameString="@{person}"

    instead of

    app:nameString="@{person}"

    the type name must match the name you have set up in the @BindingAdapter class (if you are using binding adapter)

提交回复
热议问题