记录下 使用 android dbflow4.2.4 踩的坑
使用https://www.cnblogs.com/xxdh/p/9282504.html 没问题
但我踩坑的东西
ex :
model类里面
@Table(database = IMDB.class)
public class UserEntity extends BaseModel {
@PrimaryKey(autoincrement = true)
@Column
long rowid;
@Column
String uid;//UID 用户的唯一ID
@Column
String getname;
....get() or set()
}
第一:不要使用rowid这种特殊字段
第二:参数自身尽量不要包含get 、 set 字符
(后端工程师返回的 json key 有时候就是坑的来源,特别是使用gson自动解析的时候)
否则,会出现rebuild工程OK,,一跑项目就会找不到 xxxx_Table 的问题