RxjavaRetrofitDemo-master icon indicating copy to clipboard operation
RxjavaRetrofitDemo-master copied to clipboard

Greendao problems

Open LiPingStruggle opened this issue 7 years ago • 1 comments

Thanks for sharing the author found a problem when I tried it, and find the reasonAnd you said hereGreendao database problem into the first data no problem to insert the second report abnormal dataAndroid. Database. Sqlite. SQLiteConstraintException: PRIMARY KEY must be unique (code 19) see this exception I think is a problem of the PRIMARY KEY.And when I tried it is not, so I found type is not corresponding to check the source code.So he changed the CookieResulte id type from long to Long after see the source is a non-empty judgment judge normal should set id for self growth

thanks

LiPingStruggle avatar Mar 26 '17 13:03 LiPingStruggle

Yes, someone has similar problem. But there was no this problem, I test the demo preliminary doubt is cheap GreenDao automatically generated class problems, modify the CookieResulte long to Long can solve this problem, I has been updated making source code to fix the problem ,Thx

wzgiceman avatar Mar 28 '17 07:03 wzgiceman