Litepal中主键id的类型

第一次使用Litepal,习惯性的将实体类的主键id设置成了Integer类型,导致一直出错

Activity ... did not call through to super.onPostCreate()

添加了onPostCreate方法也不行,搜素也找不到答案。

多次尝试之后将类的id设置成int类型就可以了。

private int id;


你可能感兴趣的:(litepal)