Error map

Resources$NotFoundException in values-night / color not found in dark mode Resources$NotFoundException: Resource ID #0x7f0600c1 type #0x1d is not valid

Android · layer 1, On your device

Open the full error page →

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

Resources$NotFoundException in values-night / color not found in dark mode — Resources$NotFoundException: Resource ID #0x7f0600c1 type #0x1d is not valid (Android)Resources$N…Resources$NotFoundException — android.content.res.Resources$NotFoundException: Resource ID #0x7f... (Android)Resources$NotFoundE…android:attr/lStar not found — AAPT: error: resource android:attr/lStar not found (Android)android:attr/lStar …Duplicate resources — Execution failed for task ':app:mergeDebugResources'. > Duplicate resources (Android)Duplicate resourcesAndroid resource linking failed — AAPT: error: resource x (aka y) not found — Android resource linking failed (Android)Android resource li…Invalid file name: must contain only lowercase letters and digits ([a-z0-9_.]) — Android resource file name must contain only lowercase a-z, 0-9, or underscore (Android)Invalid file name: …TextInputLayout requires Material theme / InflateException — android.view.InflateException: Binary XML file: Error inflating class com.google.android.material.textfield.TextInputLayout (Android)TextInputLayout req…You 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…Android 12 splash screen shows twice / wrong icon — (behavior) Two splash screens appear on Android 12+ (Android)Android 12 splash s…Unresolved reference: R (after namespace change) — Unresolved reference: R (Android)Unresolved referenc…Duplicate resources / Resource compilation failed — Execution failed for task ':app:mergeDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable (Android)Duplicate resources…Evicted — Kubernetes: Pod Evicted — The node was low on resource: memory / ephemeral-storage (Kubernetes)Evictedexceeded quota — Error creating: pods is forbidden: exceeded quota: compute-resources, requested: limits.memory=1Gi, used: ..., limited: ... (Kubernetes)exceeded quotamust specify limits — pods is forbidden: failed quota: must specify limits.cpu,limits.memory,requests.cpu,requests.memory (Kubernetes)must specify limitsCould not resolve — Gradle: Could not resolve all files for configuration / Could not resolve dependency (Android)Could not resolveManifest merger failed — Manifest merger failed: android:exported needs to be explicitly specified (Android)Manifest merger fai…Duplicate class — Duplicate class X found in modules A and B (Android)Duplicate classFailedScheduling — Kubernetes: Pod stuck in Pending — FailedScheduling: 0/3 nodes are available (Kubernetes)FailedSchedulingResourceNotFound — ResourceNotFound: The Resource 'Microsoft.X/...' under resource group 'y' was not found (Azure)ResourceNotFoundFailed 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…Unsupported class file major version — Gradle: Unsupported class file major version / Android Gradle plugin requires Java 17 to run (Android)Unsupported class f…Gradle wrapper main class — Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain (Java)Gradle wrapper main…SDK 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…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…fatal: 'x y' is not a valid branch name — fatal: 'feature/my branch' is not a valid branch name. (Git)fatal: 'x y' is not…Vector drawable: <vector> tag requires viewportWidth > 0 — org.xmlpull.v1.XmlPullParserException: <vector> tag requires viewportWidth > 0 (Android)Vector drawable: <v…InflateException: Binary XML file line #12: Error inflating class — android.view.InflateException: Binary XML file line #12 in com.example:layout/activity_main: Binary XML file line #12: Error inflating class androidx.constraintlayout.widget.ConstraintLayout (Android)InflateException: B…The style on this component requires your app theme to be Theme.MaterialComponents — java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant) (Android)The style on this c…IllegalStateException: ViewHolder views must not be attached when created — java.lang.IllegalStateException: ViewHolder views must not be attached when created. Ensure that you are not passing 'true' to the attachToRoot parameter of LayoutInflater.inflate(..., boolean atta... (Android)IllegalStateExcepti…ClassCastException: cannot be cast to android.widget — java.lang.ClassCastException: android.widget.Button cannot be cast to android.widget.TextView (Android)ClassCastException:…BadParcelableException: ClassNotFoundException when unmarshalling — android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.example.Model (Android)BadParcelableExcept…App crashes after restore on a new phone — (behavior) crash on first launch after device transfer / Auto Backup (Android)App crashes after r…CalledFromWrongThreadException — CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views (Android)CalledFromWrongThre…BadTokenException — WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? (Android)BadTokenExceptionSecurityException: Caller needs SCHEDULE_EXACT_ALARM — java.lang.SecurityException: Caller com.example needs to hold android.permission.SCHEDULE_EXACT_ALARM or android.permission.USE_EXACT_ALARM to set exact alarms (Android)SecurityException: …Namespace not specified — Namespace not specified. Specify a namespace in the module's build file (AGP 8) (Android)Namespace not speci…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…Lint found fatal errors while assembling a release target — Lint found fatal errors while assembling a release target / lintVitalRelease FAILED (Android)Lint found fatal er…CMake Error: Could not find CMAKE_MAKE_PROGRAM — CMake Error: CMake was unable to find a build program corresponding to "Ninja" (Android)CMake Error: Could …CONFLICT during cherry-pick — error: could not apply a1b2c3d... Fix login bug / hint: After resolving the conflicts, mark them with git add/rm, then run git cherry-pick --continue (Git)CONFLICT during che…

Directly related (10)

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…

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…

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).

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…

Invalid file name: must contain only lowercase letters and digits ([a-z0-9_.])Android

Android resource file name must contain only lowercase a-z, 0-9, or underscore

A resource file name contains forbidden characters.

TextInputLayout requires Material theme / InflateExceptionAndroid

android.view.InflateException: Binary XML file: Error inflating class com.google.android.material.textfield.TextInputLayout

Material TextInputLayout failed to inflate, usually from a theme problem.

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.

Android 12 splash screen shows twice / wrong iconAndroid

(behavior) Two splash screens appear on Android 12+

Android 12 forces a system splash screen, so custom splash activities cause a double splash.

Unresolved reference: R (after namespace change)Android

Unresolved reference: R

The generated R class isn't visible, usually after a namespace/package change.

Duplicate resources / Resource compilation failedAndroid

Execution failed for task ':app:mergeDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable

Resource merging failed, often from an invalid or duplicate resource file.

Two steps away (30)

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.

exceeded quotaKubernetes

Error creating: pods is forbidden: exceeded quota: compute-resources, requested: limits.memory=1Gi, used: ..., limited: ...

The namespace’s ResourceQuota doesn’t have room for the new pod’s requests/limits (or object count).

must specify limitsKubernetes

pods is forbidden: failed quota: must specify limits.cpu,limits.memory,requests.cpu,requests.memory

A ResourceQuota on the namespace covers CPU/memory, so every pod must declare those requests/limits — and this one doesn’t.

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.

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.

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…

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.

ResourceNotFoundAzure

ResourceNotFound: The Resource 'Microsoft.X/...' under resource group 'y' was not found

The specific resource doesn’t exist in that resource group/subscription — wrong name, group or subscription, or it was deleted.

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.

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.

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.

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.

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.

fatal: 'x y' is not a valid branch nameGit

fatal: 'feature/my branch' is not a valid branch name.

The branch name contains characters Git forbids.

Vector drawable: <vector> tag requires viewportWidth > 0Android

org.xmlpull.v1.XmlPullParserException: <vector> tag requires viewportWidth > 0

A vector drawable is missing viewport size.

InflateException: Binary XML file line #12: Error inflating classAndroid

android.view.InflateException: Binary XML file line #12 in com.example:layout/activity_main: Binary XML file line #12: Error inflating class androidx.constraintlayout.widget.ConstraintLayout

A layout file couldn't be inflated, usually because a class or attribute inside is wrong.

The style on this component requires your app theme to be Theme.MaterialComponentsAndroid

java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant)

A Material component is used under a non-Material theme.

IllegalStateException: ViewHolder views must not be attached when createdAndroid

java.lang.IllegalStateException: ViewHolder views must not be attached when created. Ensure that you are not passing 'true' to the attachToRoot parameter of LayoutInflater.inflate(..., boolean atta...

onCreateViewHolder inflated with attachToRoot = true.

ClassCastException: cannot be cast to android.widgetAndroid

java.lang.ClassCastException: android.widget.Button cannot be cast to android.widget.TextView

A view id in the layout is a different widget type than the one the code expects.

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.

App crashes after restore on a new phoneAndroid

(behavior) crash on first launch after device transfer / Auto Backup

Restored app data is incompatible with the new device.

CalledFromWrongThreadExceptionAndroid

CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views

Background code updated a View directly; UI changes must happen on the main thread.

BadTokenExceptionAndroid

WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?

A dialog or popup was shown with a context whose Activity is finishing/destroyed, or with the Application context.

SecurityException: Caller needs SCHEDULE_EXACT_ALARMAndroid

java.lang.SecurityException: Caller com.example needs to hold android.permission.SCHEDULE_EXACT_ALARM or android.permission.USE_EXACT_ALARM to set exact alarms

Android 12+ restricts exact alarms and the app lacks permission.

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 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.

Lint found fatal errors while assembling a release targetAndroid

Lint found fatal errors while assembling a release target / lintVitalRelease FAILED

The release build runs a lint check and a fatal lint issue stopped it.

CMake Error: Could not find CMAKE_MAKE_PROGRAMAndroid

CMake Error: CMake was unable to find a build program corresponding to "Ninja"

The native build can't find CMake or Ninja.

CONFLICT during cherry-pickGit

error: could not apply a1b2c3d... Fix login bug / hint: After resolving the conflicts, mark them with git add/rm, then run git cherry-pick --continue

The picked commit touches lines that differ on your branch.