GreenDao 主键自增 UNIQUE constraint failed: VISITOR_MODEL._id (code 1555)
@SuppressWarnings("serial")
@Entity
public class VisitorModel implements Serializable {
/// Id
@Id(autoincrement = true)
public Long ID;
}
将long改为Long ;
原创
2018-08-16 11:10:44 ·
3490 阅读 ·
1 评论