Caused by: java.lang.IllegalStateException: Migration didn't properly handle tbl_record(com.lenderbook.models.Record).
Expected:
TableInfo{name='tbl_record', columns={image=Column{name='image', type='BLOB', affinity='5', notNull=false, primaryKeyPosition=0}, amount=Column{name='amount', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}, isSynced=Column{name='isSynced', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}, address=Column{name='address', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}, endDate=Column{name='endDate', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}, name=Column{name='name', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}, contactNumber=Column{name='contactNumber', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}, description=Column{name='description', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}, currency=Column{name='currency', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}, id=Column{name='id', type='INTEGER', affinity='3', notNull=true, primaryKeyPosition=1}, creationDate=Column{name='creationDate', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}, startDate=Column{name='startDate', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}}, foreignKeys=[], indices=[]}
Found:
TableInfo{name='tbl_record', columns={}, foreignKeys=[], indices=[]}
问题是房间无法看到以前的sqlite数据库的列,即(Found:columns = {}),而我通过导出检查了以前的db文件,它具有表以及所有列和数据初始化。