Error map
Room: AutoMigration requires a spec for renamed/deleted columns error: Schema 1 to 2 has a renamed/deleted column, an AutoMigration spec is required
Android · layer 1, On your device
Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (12)
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 access database on the main thread since it may potentially lock the UI for a long period of time
A Room DAO query ran on the main thread; Room forbids it by default.
android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787 SQLITE_CONSTRAINT_FOREIGNKEY)
A row references a parent that doesn't exist (or was deleted).
(behavior) DAO Flow emits only once
The observed query doesn't re-emit after table changes.
error: Unresolved reference: synthetic
Kotlin synthetic view imports were removed.
[ksp] Unresolved reference: AppDatabase_Impl
KSP did not run the annotation processor, so the generated class does not exist.
java.lang.NoClassDefFoundError: android/support/v4/app/Fragment
A library still uses old android.support classes that no longer exist in an AndroidX app.
java.lang.IllegalStateException: A migration from 1 to 2 was required but not found. Please provide the necessary Migration path
The Room schema version increased but no migration describes how to upgrade existing data.
android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: user.email (code 2067 SQLITE_CONSTRAINT_UNIQUE)
An insert or update violated a unique index or primary key.
error: An entity must have at least 1 field annotated with @PrimaryKey
A Room @Entity has no primary key.
error: Cannot figure out how to save this field into database. You can consider adding a type converter for it.
Room doesn't know how to store a custom type column.
error: There is a problem with the query: [SQLITE_ERROR] SQL error or missing database (no such column: userName)
A @Query references a column that the entity doesn't have.
Two steps away (22)
MySQL ERROR 1146 (42S02): Table 'db.table' doesn't exist
The query references a table that MySQL can’t find in that database.
PostgreSQL: ERROR: relation "x" does not exist
The table/view isn’t found — missing migration, wrong schema, or a case-sensitive quoted name.
MySQL ERROR 1022 (23000): Can't write; duplicate key in table
An ALTER/CREATE produced a duplicate key or constraint name — often a foreign key name that already exists in the database.
AAPT: error: resource android:attr/lStar not found
A dependency (androidx.core 1.7+) uses an attribute from Android 12 (API 31), but your module compiles against an older compileSd…
AAPT: error: resource x (aka y) not found — Android resource linking failed
A layout, manifest or style references a resource (drawable, string, style, attribute) that doesn’t exist in the module or its de…
android.os.NetworkOnMainThreadException
The app made a network call on the main (UI) thread, which Android forbids.
android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5 SQLITE_BUSY)
Another connection holds a write lock on the SQLite database.
java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase
The Room database was closed while a query ran.
(behavior) Flow collection continues after the app is stopped
Collecting a Flow with `lifecycleScope.launch` doesn't stop when the UI is hidden.
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0
A dependency was compiled with a newer Kotlin version than your project’s Kotlin Gradle plugin can read.
Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (17) and 'compileDebugKotlin' (1.8)
Java and Kotlin compile tasks target different JVM bytecode versions in the same module.
This version (1.5.3) of the Compose Compiler requires Kotlin version 1.9.10 but you appear to be using Kotlin version 1.9.0
The Compose compiler plugin is tied to one exact Kotlin release and yours differs.
The Android Gradle plugin supports only Gradle version 8.x and higher. Current Gradle version is 7.x
The Android Gradle plugin (AGP) in your build needs a newer Gradle than the wrapper provides.
error: cannot find symbol class DaggerAppComponent / kaptDebugKotlin FAILED
Annotation processing with kapt failed, so generated classes such as Dagger or Room code are missing.
Execution failed for task ':app:bundleRelease'. Error while executing bundletool
Building the Android App Bundle (.aab) failed in the bundle step.
Duplicate class X found in modules A and B
Two dependencies ship the same class — typically old Android Support libraries mixed with AndroidX, or Kotlin stdlib-jdk7/jdk8 ve…
uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library
A dependency needs a higher minSdk than the app declares.
Failed to transform artifact 'xyz.aar' to match attributes ... Jetifier
The Jetifier tool could not rewrite an old support-library dependency to AndroidX.
android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed
A query returned rows too big for the 2 MB cursor window.
androidx.datastore.core.CorruptionException: Unable to parse preferences proto
The DataStore file on disk can't be read.
(behavior) crash on first launch after device transfer / Auto Backup
Restored app data is incompatible with the new device.
Error Domain=NSCocoaErrorDomain Code=133021 "Could not merge changes." NSConstraintConflict
Two objects violate a uniqueness constraint.