android
migration_error
ai_generated
true
IllegalStateException: Room migration missing
ID: android/room-migration-error
82%Fix Rate
86%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 14 | active | — | — | — |
Root Cause
Room database version changed without providing migration.
genericWorkarounds
-
90% success Write Migration(fromVersion, toVersion) with ALTER TABLE statements
-
88% success Use auto-migration: @AutoMigration(from=1, to=2) for simple changes
Dead Ends
Common approaches that don't work:
-
Use fallbackToDestructiveMigration() always
82% fail
Loses user data on every schema change
-
Keep database version at 1 forever
88% fail
Cannot change schema