Error map

Unresolved reference: R (after namespace change) Unresolved reference: R

Android · layer 1, On your device

Open the full error page →

Centre: this error. First ring: errors it is linked with (8). 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.

Unresolved reference: R (after namespace change) — Unresolved reference: R (Android)Unresolved …Namespace not specified — Namespace not specified. Specify a namespace in the module's build file (AGP 8) (Android)Namespace not speci…android:attr/lStar not found — AAPT: error: resource android:attr/lStar not found (Android)android:attr/lStar …Android resource linking failed — AAPT: error: resource x (aka y) not found — Android resource linking failed (Android)Android resource li…Android Gradle plugin requires Java 17 — Android Gradle plugin requires Java 17 to run. You are currently using Java 11 (Android)Android Gradle plug…BuildConfig unresolved reference — Unresolved reference: BuildConfig / buildFeatures buildConfig is not enabled (Android)BuildConfig unresol…Android Gradle plugin requires a newer Gradle — The Android Gradle plugin supports only Gradle version 8.x and higher. Current Gradle version is 7.x (Android)Android Gradle plug…Resources$NotFoundException in values-night / color not found in dark mode — Resources$NotFoundException: Resource ID #0x7f0600c1 type #0x1d is not valid (Android)Resources$NotFoundE…Android Studio too old for this Android Gradle plugin — This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling the Android Gradle Plugin (Android)Android Studio too …Manifest merger failed — Manifest merger failed: android:exported needs to be explicitly specified (Android)Manifest merger fai…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 lockfileCould not resolve — Gradle: Could not resolve all files for configuration / Could not resolve dependency (Android)Could not resolveDuplicate class — Duplicate class X found in modules A and B (Android)Duplicate classUnsupported class file major version — Gradle: Unsupported class file major version / Android Gradle plugin requires Java 17 to run (Android)Unsupported class f…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…UnsupportedClassVersionError — 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…Cannot fit requested classes in a single dex file — Cannot fit requested classes in a single dex file (# methods: 65536 > 65536) — mergeDex failed (Android)Cannot fit requeste…Cannot find symbol ActivityMainBinding — error: cannot find symbol class ActivityMainBinding (Android)Cannot find symbol …Error building the app bundle — Execution failed for task ':app:bundleRelease'. Error while executing bundletool (Android)Error building the …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…Minimum supported Gradle version — Minimum supported Gradle version is 8.7. Current version is 8.2 (Android)Minimum supported G…R8: Missing class — ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules (missing_rules.txt) (Android)R8: Missing classResources$NotFoundException — android.content.res.Resources$NotFoundException: Resource ID #0x7f... (Android)Resources$NotFoundE…Duplicate resources — Execution failed for task ':app:mergeDebugResources'. > Duplicate resources (Android)Duplicate resourcesYou need to use a Theme.AppCompat theme — java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity (Android)You need to use a T…This app can't run on your PC — This app can't run on your PC — To find a version for your PC, check with the software publisher (Windows)This app can't run …Compose preview: Render problem / failed to instantiate — Failed to instantiate one or more classes / java.lang.NoSuchMethodError in Compose preview (Android)Compose preview: Re…Logcat shows nothing / No debuggable processes — Logcat empty after run / No debuggable applications (Android)Logcat shows nothin…

Directly related (8)

Namespace not specifiedAndroid

Namespace not specified. Specify a namespace in the module's build file (AGP 8)

AGP 8 requires android { namespace = "…" } in each module’s build file; the package attribute in AndroidManifest.xml is no longer…

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…

Android resource linking failedAndroid

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 Gradle plugin requires Java 17Android

Android Gradle plugin requires Java 17 to run. You are currently using Java 11

This AGP version runs on JDK 17 (or newer) and Gradle is currently started with an older JDK.

BuildConfig unresolved referenceAndroid

Unresolved reference: BuildConfig / buildFeatures buildConfig is not enabled

AGP 8 no longer generates BuildConfig unless you ask for it.

Android Gradle plugin requires a newer GradleAndroid

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.

Resources$NotFoundException in values-night / color not found in dark modeAndroid

Resources$NotFoundException: Resource ID #0x7f0600c1 type #0x1d is not valid

A resource used in dark mode isn't defined for the night configuration.

Android Studio too old for this Android Gradle pluginAndroid

This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling the Android Gradle Plugin

The IDE can't open a project using a newer AGP.

Two steps away (24)

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.

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.

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.

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…

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.

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.

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.

Cannot fit requested classes in a single dex fileAndroid

Cannot fit requested classes in a single dex file (# methods: 65536 > 65536) — mergeDex failed

The app exceeds the 64K method reference limit of a single DEX file and multidex isn’t enabled (minSdk below 21).

Cannot find symbol ActivityMainBindingAndroid

error: cannot find symbol class ActivityMainBinding

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

Error building the app bundleAndroid

Execution failed for task ':app:bundleRelease'. Error while executing bundletool

Building the Android App Bundle (.aab) failed in the bundle step.

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.

Minimum supported Gradle versionAndroid

Minimum supported Gradle version is 8.7. Current version is 8.2

The Android Gradle Plugin (AGP) version in your build needs a newer Gradle wrapper version.

R8: Missing classAndroid

ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules (missing_rules.txt)

R8 (minification) found references to classes that aren’t on the classpath, typically optional dependencies of a library.

Resources$NotFoundExceptionAndroid

android.content.res.Resources$NotFoundException: Resource ID #0x7f...

Code asked for a resource ID that doesn’t exist for the current configuration — often passing an int to setText(), or a resource…

Duplicate resourcesAndroid

Execution failed for task ':app:mergeDebugResources'. > Duplicate resources

Two resource files define the same name and type in the same configuration (e.g. ic_logo.png and ic_logo.xml).

You need to use a Theme.AppCompat themeAndroid

java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity

An AppCompatActivity runs with a theme that isn't AppCompat based.

This app can't run on your PCWindows

This app can't run on your PC — To find a version for your PC, check with the software publisher

The program was built for another architecture (32/64-bit, ARM) or is blocked by S mode/compatibility, or the file is corrupt.

Compose preview: Render problem / failed to instantiateAndroid

Failed to instantiate one or more classes / java.lang.NoSuchMethodError in Compose preview

Android Studio can't render the @Preview of your composable.

Logcat shows nothing / No debuggable processesAndroid

Logcat empty after run / No debuggable applications

Android Studio's Logcat window is empty or filtered out.