jackyshan

导航

 

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;
      }
    
posted on 2016-01-22 13:26  jackyshan  阅读(185)  评论(0编辑  收藏  举报