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

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个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问