I have added some new Entities(tables) to existing database. So configured those in database configuration-
@Database(entities = {existingTable1.class, existingTable2.class, existingTable3.class, existingTable4.class,
newTable1.class, newTable2.class
}, version = 1, exportSchema = false)
Since, the app is in development stage I used to avoid migration. So I have unistall the app from device and install through Android Studio (Run). But its giving 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.
In my manifest allowBackup is set to false as below-
android:allowBackup="false"
EDITED
I have one thing to mention. I have a sqlite database file in asset folder. I just copy it into corresponding app DB folder on installation. So when new table with lots of pre-populated data need to added, I just update that sqlite database file in asset folder, then adjust relevant entities and build/run the project. This way, it was working fine, but this time it is producing this issue.
android:allowBackup="false"
? – Manohar