Skip to content

textfield.TextInputLayout App crashing with Caused by: java.lang.IllegalArgumentException: This component requires that you specify a valid TextAppearance attribute. Update your app theme to inherit from Theme.MaterialComponents (or a descendant).  #3871

Open
@yogeshmehare

Description

@yogeshmehare

device is google emulator api 33 and using same material component theme for activity as well as app.
I tried by adding android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" this line of code but same isseue is repeating please check.

Code is :
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/menu"
style="@style/Widget.Material3.TextInputLayout.FilledBox.ExposedDropdownMenu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:hint="@string/label">

    <AutoCompleteTextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:inputType="none"
        app:simpleItems="@array/simple_items"
        android:hint="@string/label"
        android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
        />

</com.google.android.material.textfield.TextInputLayout>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions