I am getting this error while running a program with Room Database
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.
It seems we need to update Database version, but from where can we do that in Room?
Aniruddh Parihar 's answer gave me a hint and it solved.
Search for a class where you have extended RoomDatabase
. There you will find version like below :
@Database(entities = {YourEntity.class}, version = 1)
just increase the version and problem is solved.