Android - SQLite - no such column error (greenDAO)

北战南征 提交于 2019-12-02 09:31:04

When you update any fields, this updates don't refresh in the actual DB. A solution that worked for me, is delete all tables in the DB and then create all tables again. In my case, my database was empty.

See the next link: How to clean/delete greenDao database

Other option is do ALTER TABLE on existing database.

I just encountered the same problem,you can try this : check the table which is a new table or a old table ,because we always create table with "if not exists". PS: 1.I am from China,my English is poor , Pray you can understand my words. 2.the answer is for someone who will meet the same question after me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!