我有这个数据绑定类,我在
RegistrationViewModel
: 中用于我的注册屏幕
class RegisterData : BaseObservable() {
@get:Bindable
var email: String? = null
set(value) {
field = value
notifyPropertyChanged(BR.email)
}
@get:Bindable
var password: String? = null
set(value) {
field = value
notifyPropertyChanged(BR.password)
}
}
但我越来越
Unresolved reference: BR
。我尝试重新启动 Android Studio、清理项目、重建项目、使缓存无效/重新启动,但它仍在发生。