Error map

Duplicate class kotlin.collections found in modules Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules kotlin-stdlib-1.8.0 and kotlin-stdlib-jdk8-1.7.10

Android · layer 1, On your device

Open the full error page →

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.

Duplicate class kotlin.collections found in modules — Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules kotlin-stdlib-1.8.0 and kotlin-stdlib-jdk8-1.7.10 (Android)Duplicate c…Duplicate class — Duplicate class X found in modules A and B (Android)Duplicate classincompatible version of Kotlin — 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 (Android)incompatible versio…Inconsistent JVM-target compatibility — Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (17) and 'compileDebugKotlin' (1.8) (Android)Inconsistent JVM-ta…android:attr/lStar not found — AAPT: error: resource android:attr/lStar not found (Android)android:attr/lStar …MissingFieldException: Field 'x' is required — kotlinx.serialization.MissingFieldException: Field 'id' is required for type with serial name 'com.example.User', but it was missing (Android)MissingFieldExcepti…./gradlew: Permission denied — bash: ./gradlew: Permission denied (Android)./gradlew: Permissi…Could not load entry from build cache / transforms cache corrupted — Failed to load cache entry for task ':app:compileDebugKotlin' (Android)Could not load entr…when expression must be exhaustive (sealed class) — error: 'when' expression must be exhaustive, add necessary 'is Loading' branch or 'else' branch instead (Android)when expression mus…Smart cast to 'X' is impossible, because 'y' is a mutable property that could have been changed by this time — error: Smart cast to 'String' is impossible, because 'name' is a mutable property that could have been changed by this time (Android)Smart cast to 'X' i…Type mismatch: inferred type is X but Y was expected — error: Type mismatch: inferred type is String? but String was expected (Android)Type mismatch: infe…Unresolved reference: kotlinx.android.synthetic — error: Unresolved reference: synthetic (Android)Unresolved referenc…Parcelize: 'Parcelable' not implemented / plugin not applied — error: Class 'User' is not abstract and does not implement abstract member public abstract fun writeToParcel (Android)Parcelize: 'Parcela…Could not resolve — Gradle: Could not resolve all files for configuration / Could not resolve dependency (Android)Could not resolveClassNotFoundException — java.lang.ClassNotFoundException / NoClassDefFoundError (Java)ClassNotFoundExcept…Manifest merger failed — Manifest merger failed: android:exported needs to be explicitly specified (Android)Manifest merger fai…Unsupported class file major version — Gradle: Unsupported class file major version / Android Gradle plugin requires Java 17 to run (Android)Unsupported class f…caching_sha2_password — Authentication plugin 'caching_sha2_password' cannot be loaded (MySQL)caching_sha2_passwo…old lockfile — npm WARN old lockfile — The package-lock.json file was created with an old version of npm, so supplemental metadata must be fetched (npm)old lockfileUnsupportedClassVersionError — java.lang.UnsupportedClassVersionError: class file version 61.0, this version of the Java Runtime only recognizes up to 55.0 (Java)UnsupportedClassVer…JAVA_HOME not set — ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. (Java)JAVA_HOME not setrelease version not supported — [ERROR] Fatal error compiling: error: release version 17 not supported (Java)release version not…FailedScheduling — Kubernetes: Pod stuck in Pending — FailedScheduling: 0/3 nodes are available (Kubernetes)FailedSchedulingEvicted — Kubernetes: Pod Evicted — The node was low on resource: memory / ephemeral-storage (Kubernetes)EvictedGradle wrapper main class — Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain (Java)Gradle wrapper main…NumberFormatException — java.lang.NumberFormatException: For input string: "x" (Java)NumberFormatExcepti…DateTimeParseException — java.time.format.DateTimeParseException: Text '31/12/2024' could not be parsed at index 2 (Java)DateTimeParseExcept…Unparseable date — java.text.ParseException: Unparseable date: "x" (Java)Unparseable date0x80070005 — Windows Error 0x80070005 (E_ACCESSDENIED): Access is denied (Windows)0x80070005sudoers — user is not in the sudoers file. This incident will be reported. (Linux)sudoersshallow update not allowed — ! [remote rejected] main -> main (shallow update not allowed) (Git)shallow update not …corrupt object — error: object file .git/objects/x is empty / fatal: loose object is corrupt (Git)corrupt objectSDK location not found — SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in local.properties (Android)SDK location not fo…Failed to find target with hash string — Failed to find target with hash string 'android-34' / Failed to install the following Android SDK packages as some licences have not been accepted (Android)Failed to find targ…Compose Compiler requires a different Kotlin version — 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 (Android)Compose Compiler re…UninitializedPropertyAccessException: lateinit property has not been initialized — kotlin.UninitializedPropertyAccessException: lateinit property adapter has not been initialized (Android)UninitializedProper…JobCancellationException: StandaloneCoroutine was cancelled — kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled; job=StandaloneCoroutine{Cancelling}@a1b2c3 (Android)JobCancellationExce…NullPointerException: Parameter specified as non-null is null — java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter intent (Android)NullPointerExceptio…'nil' requires a contextual type / Cannot infer type — error: 'nil' requires a contextual type (iOS)'nil' requires a co…Ambiguous use of 'init' / trailing closure — error: ambiguous use of 'init(content:)' (iOS)Ambiguous use of 'i…ClassCastException — java.lang.ClassCastException: class A cannot be cast to class B (Java)ClassCastExceptionThe argument type can't be assigned to the parameter type — Dart: The argument type 'String?' can't be assigned to the parameter type 'String' (Flutter / Dart)The argument type c…Cannot find symbol ActivityMainBinding — error: cannot find symbol class ActivityMainBinding (Android)Cannot find symbol …Class android.support.v4 not found after AndroidX — java.lang.NoClassDefFoundError: android/support/v4/app/Fragment (Android)Class android.suppo…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)Room: AutoMigration…kapt: error type was incorrect / cannot find symbol — error: cannot find symbol class DaggerAppComponent / kaptDebugKotlin FAILED (Android)kapt: error type wa…BadParcelableException: ClassNotFoundException when unmarshalling — android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.example.Model (Android)BadParcelableExcept…Moshi: JsonDataException: Required value missing — com.squareup.moshi.JsonDataException: Required value 'name' missing at $.user (Android)Moshi: JsonDataExce…

Directly related (12)

Duplicate classAndroid

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…

incompatible version of KotlinAndroid

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 compatibilityAndroid

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.

android:attr/lStar not foundAndroid

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…

MissingFieldException: Field 'x' is requiredAndroid

kotlinx.serialization.MissingFieldException: Field 'id' is required for type with serial name 'com.example.User', but it was missing

A required property wasn't present in the JSON being decoded.

./gradlew: Permission deniedAndroid

bash: ./gradlew: Permission denied

The Gradle wrapper script isn't executable.

Could not load entry from build cache / transforms cache corruptedAndroid

Failed to load cache entry for task ':app:compileDebugKotlin'

A Gradle cache entry is damaged.

when expression must be exhaustive (sealed class)Android

error: 'when' expression must be exhaustive, add necessary 'is Loading' branch or 'else' branch instead

A `when` used as an expression doesn't cover all sealed subclasses.

Smart cast to 'X' is impossible, because 'y' is a mutable property that could have been changed by this timeAndroid

error: Smart cast to 'String' is impossible, because 'name' is a mutable property that could have been changed by this time

Kotlin can't smart-cast a `var` property that may change.

Type mismatch: inferred type is X but Y was expectedAndroid

error: Type mismatch: inferred type is String? but String was expected

A nullable value is passed where non-null is required (or vice versa).

Unresolved reference: kotlinx.android.syntheticAndroid

error: Unresolved reference: synthetic

Kotlin synthetic view imports were removed.

Parcelize: 'Parcelable' not implemented / plugin not appliedAndroid

error: Class 'User' is not abstract and does not implement abstract member public abstract fun writeToParcel

@Parcelize is used without the plugin.

Two steps away (35)

Could not resolveAndroid

Gradle: Could not resolve all files for configuration / Could not resolve dependency

Gradle couldn’t download a dependency — wrong coordinates/version, missing repository, offline mode, or network/proxy issues.

ClassNotFoundExceptionJava

java.lang.ClassNotFoundException / NoClassDefFoundError

The JVM couldn’t find a class on the classpath at runtime.

Manifest merger failedAndroid

Manifest merger failed: android:exported needs to be explicitly specified

Targeting Android 12 (API 31)+ requires `android:exported` on every activity, service or receiver that has an intent-filter.

Unsupported class file major versionAndroid

Gradle: Unsupported class file major version / Android Gradle plugin requires Java 17 to run

The JDK running Gradle doesn’t match what the Gradle version or Android Gradle Plugin (AGP) supports.

caching_sha2_passwordMySQL

Authentication plugin 'caching_sha2_password' cannot be loaded

An old MySQL client/driver can’t use MySQL 8’s default authentication plugin.

old lockfilenpm

npm WARN old lockfile — The package-lock.json file was created with an old version of npm, so supplemental metadata must be fetched

The lockfile is lockfileVersion 1 (npm 6) and npm 7+ is upgrading it.

UnsupportedClassVersionErrorJava

java.lang.UnsupportedClassVersionError: class file version 61.0, this version of the Java Runtime only recognizes up to 55.0

Code compiled for a newer Java version is running on an older JVM.

JAVA_HOME not setJava

ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Build tools (Gradle, Maven, Android tools) can’t find a JDK.

release version not supportedJava

[ERROR] Fatal error compiling: error: release version 17 not supported

The JDK running Maven is older than the Java version the project compiles for.

FailedSchedulingKubernetes

Kubernetes: Pod stuck in Pending — FailedScheduling: 0/3 nodes are available

The scheduler can’t find a node that satisfies the pod’s resource requests, selectors, taints or volume constraints.

EvictedKubernetes

Kubernetes: Pod Evicted — The node was low on resource: memory / ephemeral-storage

The kubelet removed the pod because its node ran short of memory or disk.

Gradle wrapper main classJava

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

The Gradle wrapper JAR (gradle/wrapper/gradle-wrapper.jar) is missing or corrupt.

NumberFormatExceptionJava

java.lang.NumberFormatException: For input string: "x"

A string couldn’t be parsed as a number — it’s empty, has spaces/commas, is too large, or isn’t numeric.

DateTimeParseExceptionJava

java.time.format.DateTimeParseException: Text '31/12/2024' could not be parsed at index 2

A java.time parse call got text that doesn’t match the expected format.

Unparseable dateJava

java.text.ParseException: Unparseable date: "x"

SimpleDateFormat couldn’t parse the string with its pattern.

0x80070005Windows

Windows Error 0x80070005 (E_ACCESSDENIED): Access is denied

Windows refused an operation because the account or process lacks permission — seen in Windows Update, installers, Task Scheduler…

sudoersLinux

user is not in the sudoers file. This incident will be reported.

Your account isn’t allowed to use sudo.

shallow update not allowedGit

! [remote rejected] main -> main (shallow update not allowed)

You pushed from a shallow clone to a remote that doesn’t accept shallow history.

corrupt objectGit

error: object file .git/objects/x is empty / fatal: loose object is corrupt

The local Git object database is corrupted — usually after a crash, disk full or sync tool interference.

SDK location not foundAndroid

SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in local.properties

Gradle doesn’t know where the Android SDK is installed.

Failed to find target with hash stringAndroid

Failed to find target with hash string 'android-34' / Failed to install the following Android SDK packages as some licences have not been accepted

Gradle needs an SDK platform/build-tools that isn’t installed, or the licences haven’t been accepted on this machine.

Compose Compiler requires a different Kotlin versionAndroid

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.

UninitializedPropertyAccessException: lateinit property has not been initializedAndroid

kotlin.UninitializedPropertyAccessException: lateinit property adapter has not been initialized

A `lateinit var` was read before anything assigned it.

JobCancellationException: StandaloneCoroutine was cancelledAndroid

kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled; job=StandaloneCoroutine{Cancelling}@a1b2c3

A coroutine was cancelled, usually because its scope ended.

NullPointerException: Parameter specified as non-null is nullAndroid

java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter intent

Java code passed null to a Kotlin parameter that is non-null.

'nil' requires a contextual type / Cannot infer typeiOS

error: 'nil' requires a contextual type

Swift can't infer the type of a bare `nil`.

Ambiguous use of 'init' / trailing closureiOS

error: ambiguous use of 'init(content:)'

Overloads match the call equally.

ClassCastExceptionJava

java.lang.ClassCastException: class A cannot be cast to class B

An object was cast to a type it isn’t.

The argument type can't be assigned to the parameter typeFlutter / Dart

Dart: The argument type 'String?' can't be assigned to the parameter type 'String'

You passed a value whose type does not match what the function parameter requires.

Cannot find symbol ActivityMainBindingAndroid

error: cannot find symbol class ActivityMainBinding

The generated view-binding or data-binding class does not exist.

Class android.support.v4 not found after AndroidXAndroid

java.lang.NoClassDefFoundError: android/support/v4/app/Fragment

A library still uses old android.support classes that no longer exist in an AndroidX app.

Room: AutoMigration requires a spec for renamed/deleted columnsAndroid

error: Schema 1 to 2 has a renamed/deleted column, an AutoMigration spec is required

Room can't infer a migration with renamed or deleted columns.

kapt: error type was incorrect / cannot find symbolAndroid

error: cannot find symbol class DaggerAppComponent / kaptDebugKotlin FAILED

Annotation processing with kapt failed, so generated classes such as Dagger or Room code are missing.

BadParcelableException: ClassNotFoundException when unmarshallingAndroid

android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.example.Model

A Parcelable in a Bundle or Intent couldn't be restored because its class was not found.

Moshi: JsonDataException: Required value missingAndroid

com.squareup.moshi.JsonDataException: Required value 'name' missing at $.user

A non-null Kotlin property had no value in the JSON.