Error map

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

Android · layer 1, On your device

Open the full error page →

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

TextInputLayout requires Material theme / InflateException — android.view.InflateException: Binary XML file: Error inflating class com.google.android.material.textfield.TextInputLayout (Android)TextInputLa…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…IllegalArgumentException: No suitable parent found from the given view. Please provide a valid view. — java.lang.IllegalArgumentException: No suitable parent found from the given view. Please provide a valid view. (Android)IllegalArgumentExce…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…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…Android 12 splash screen shows twice / wrong icon — (behavior) Two splash screens appear on Android 12+ (Android)Android 12 splash s…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…Resources$NotFoundException in values-night / color not found in dark mode — Resources$NotFoundException: Resource ID #0x7f0600c1 type #0x1d is not valid (Android)Resources$NotFoundE…BadTokenException — WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? (Android)BadTokenExceptionResources$NotFoundException — android.content.res.Resources$NotFoundException: Resource ID #0x7f... (Android)Resources$NotFoundE…measured with an infinity maximum height — Jetpack Compose: Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed (Android)measured with an in…NullPointerException: Attempt to invoke virtual method on a null object reference — java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference (Android)NullPointerExceptio…ClassCastException: cannot be cast to android.widget — java.lang.ClassCastException: android.widget.Button cannot be cast to android.widget.TextView (Android)ClassCastException:…NoMatchingViewException: No views in hierarchy found matching — androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: with id: com.example:id/submit (Android)NoMatchingViewExcep…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…Core Data: NSManagedObjectContext was accessed from the wrong queue — CoreData: error: Serious application error. Exception was caught during Core Data change processing (iOS)Core Data: NSManage…ConcurrentModificationException while iterating — java.util.ConcurrentModificationException at java.util.ArrayList$Itr.next (Android)ConcurrentModificat…Terminated due to memory issue (jetsam) — Termination Reason: ... per-process-limit / EXC_RESOURCE RESOURCE_TYPE_MEMORY (iOS)Terminated due to m…AVAudioEngine: required condition is false: format.sampleRate == hwFormat.sampleRate — Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: format.sampleRate == hwFormat.sampleRate' (iOS)AVAudioEngine: requ…CalledFromWrongThreadException — CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views (Android)CalledFromWrongThre…SecurityException: 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: …Compose: click area wrong / Modifier order has no effect — (behavior) clickable ignored after clip / padding before background (Android)Compose: click area…IndexOutOfBoundsException: Index 5 out of bounds for length 3 — java.lang.IndexOutOfBoundsException: Index: 5, Size: 3 (Android)IndexOutOfBoundsExc…RecyclerView: Inconsistency detected. Invalid item position — java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 4(offset:4).state:10 (Android)RecyclerView: Incon…RecyclerView: No adapter attached; skipping layout — E/RecyclerView: No adapter attached; skipping layout (Android)RecyclerView: No ad…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…Duplicate resources — Execution failed for task ':app:mergeDebugResources'. > Duplicate resources (Android)Duplicate resources

Directly related (7)

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.

IllegalArgumentException: No suitable parent found from the given view. Please provide a valid view.Android

java.lang.IllegalArgumentException: No suitable parent found from the given view. Please provide a valid view.

Snackbar.make() was given a view that isn't attached or has no CoordinatorLayout/content parent.

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.

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.

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.

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.

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.

Two steps away (21)

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.

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…

measured with an infinity maximum heightAndroid

Jetpack Compose: Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed

A LazyColumn (or verticalScroll) is placed inside another vertically scrolling container, so it gets infinite height.

NullPointerException: Attempt to invoke virtual method on a null object referenceAndroid

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference

Code called a method on a view or object that was null, most often a findViewById that returned null.

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.

NoMatchingViewException: No views in hierarchy found matchingAndroid

androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: with id: com.example:id/submit

An Espresso test looked for a view that isn't on screen yet.

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.

Core Data: NSManagedObjectContext was accessed from the wrong queueiOS

CoreData: error: Serious application error. Exception was caught during Core Data change processing

A managed object or context was used on a different thread than it belongs to.

ConcurrentModificationException while iteratingAndroid

java.util.ConcurrentModificationException at java.util.ArrayList$Itr.next

A collection was changed while it was being iterated.

Terminated due to memory issue (jetsam)iOS

Termination Reason: ... per-process-limit / EXC_RESOURCE RESOURCE_TYPE_MEMORY

iOS killed the app for using too much memory.

AVAudioEngine: required condition is false: format.sampleRate == hwFormat.sampleRateiOS

Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: format.sampleRate == hwFormat.sampleRate'

An audio tap or node format doesn't match the hardware format.

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.

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.

Compose: click area wrong / Modifier order has no effectAndroid

(behavior) clickable ignored after clip / padding before background

Compose modifiers apply in order, so swapping them changes the result.

IndexOutOfBoundsException: Index 5 out of bounds for length 3Android

java.lang.IndexOutOfBoundsException: Index: 5, Size: 3

The code read a list or array position that doesn't exist.

RecyclerView: Inconsistency detected. Invalid item positionAndroid

java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 4(offset:4).state:10

The adapter's data changed without the right notify call while RecyclerView was laying out.

RecyclerView: No adapter attached; skipping layoutAndroid

E/RecyclerView: No adapter attached; skipping layout

The RecyclerView was laid out before an adapter was set.

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…

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