【发布时间】:2021-03-11 00:25:49
【问题描述】:
我只是在玩弄我的架构,因为我更改了架构/实体类,所以我根本无法加载我的应用程序。
我已经删除了我的测试设备上的应用程序,清除了 AndroidStudio 上的缓存,并重新启动了我的机器,但错误仍然存在。我所做的只是为我的 Room 数据库更改我的实体数据类之一的默认值。
如何在不增加版本号和提供迁移路径的情况下强制 AndroidStudio 忘记旧的表架构/实体类?
错误:
java.lang.IllegalStateException: Room cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number. You can simply fix this by increasing the version number.
【问题讨论】:
标签: android android-studio kotlin android-room dao