Room cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number
The Room entity definitions changed, but the database version wasn’t increased or no migration was provided.
Room cannot verify the data integrityLooks like you've changed schema but forgot to update the version numberA migration from 2 to 3 was required but not foundMigration didn't properly handle Meaning
Room stores a schema hash. Changing entities requires bumping @Database(version) and adding a Migration (or fallbackToDestructiveMigration for dev builds). During development, uninstalling the app also resets it.
Common causes
- Entity fields/tables changed without version bump
- Migration missing for the new version
- Two builds with different schemas on the same device
⚡ Quick fix
- Increase version and add a Migration
- Use fallbackToDestructiveMigration() only when data loss is OK
- Export schemas (room.schemaLocation) to auto-generate migrations
Detailed fix by platform
Kotlin
- kotlin
@Database(entities = [User::class], version = 3, autoMigrations = [AutoMigration(from = 2, to = 3)]) abstract class AppDb : RoomDatabase()
How to diagnose
- Version — @Database version vs installed
- Migrations — Path from old to new
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Android
- Could not resolve Gradle: Could not resolve all files for configuration / Could not resolve dependency
- Unsupported class file major version Gradle: Unsupported class file major version / Android Gradle plugin requires Java 17 to run
- INSTALL_PARSE_FAILED_NO_CERTIFICATES INSTALL_PARSE_FAILED_NO_CERTIFICATES / App not installed as package appears to be invalid
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 11 Oct 2026