如何解决? (无法解析符号“ BR”)

时间:2019-03-17 01:16:21

标签: java data-binding

我尝试使用Android Hive进行数据绑定,并且返回以下错误

  

无法解析符号'BR'

我该如何解决?

User.java

public class User extends BaseObservable {
String name;
String email;
String profileImage;
String about;

public ObservableField<Long> numberOfFollowers = new ObservableField<>();
public ObservableField<Long> numberOfPosts = new ObservableField<>();
public ObservableField<Long> numberOfFollowing = new ObservableField<>();

public User(){

}

@Bindable
public String getName() {
    return name;
}

public void setName(String name) {
    this.name = name;
    notifyPropertyChanged(**com.azhardevelop.example.com.databindingtesting.BR**.name);
}

0 个答案:

没有答案