activeandroid复制本地数据库问题总结

activeandroid no such table

  • 解决activeandroid no such table

failed to read row 0 column 1 from a cursorwindow which

  • 原因是没有添加主键id

    @Table(name = "tablename", id = "id")
    public class RecipeModel extends BaseModel{
        @Column(name = "id")
        public int id;
    
        @Column(name = "name")
        public String name;
    }

你可能感兴趣的:(activeandroid复制本地数据库问题总结)