terrorbladesoul
東邪HUX
采纳率66.7%
2018-01-19 02:15 阅读 2.1k

android 使用Room时,class 同时继承BaseObservable编译报错,如何解决?

5

android 使用Room,同时该实体类继承BaseObservable,在编译时报错,错误信息如下:

错误: Cannot figure out how to save this field into database. You can consider adding a type converter for it.
错误: Cannot find getter for field.
错误: Cannot find setter for field.
错误: Cannot figure out how to read this field from a cursor.
错误: Cannot find getter for field.
错误: Cannot find setter for field.
6 个错误

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

相关推荐