androidandroid-roomroomdb

How can I reset room db database schema if I don't want to increment the version?


My app is getting the following error:

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.

I don't want to increase the version since the app I'm developing is not yet released. What should I do to prevent this error?


Solution

  • Just clear the app data after changing the schema.