You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
In which task and step of the codelab can this issue be found?
Use cards
Describe the problem
020-10-13 17:28:41.611 11073-11073/com.example.affirmations E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.affirmations, PID: 11073
android.view.InflateException: Binary XML file line #2 in com.example.affirmations:layout/list_item: Binary XML file line #2 in com.example.affirmations:layout/list_item: Error inflating class com.google.android.material.card.MaterialCardView
Caused by: android.view.InflateException: Binary XML file line #2 in com.example.affirmations:layout/list_item: Error inflating class com.google.android.material.card.MaterialCardView
Caused by: java.lang.reflect.InvocationTargetException
Steps to reproduce?
Run Affirmations app
See error above
Versions What version of Android Studio are you using?
4.0.2
Additional information Include screenshots if they would be useful in clarifying the problem.
The text was updated successfully, but these errors were encountered:
Hello, you should notice the same error after update TextView: "android:textAppearance="?attr/textAppearanceHeadline6""
To solve this error update your styles.xml from <style name="AppTheme" parent="Theme.MaterialComponents.DayNight"> to <style name="AppTheme" parent="Theme.MaterialComponents.DayNight">
Since you’re using Android Studio 4.0.x, make this change to your res > values > styles.xml file. Change the parent app theme from Theme.AppCompat.Light.DarkActionBar to Theme.MaterialComponents.DayNight.DarkActionBar.
It is highly recommended to always use the latest version of the Android Studio. Current latest version is Android Studio 4.1. @gszesiek Thank you for the response.
Thank you so much for reporting this issue. This is fixed and will be published soon.
URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards
In which task and step of the codelab can this issue be found?
Use cards
Describe the problem
020-10-13 17:28:41.611 11073-11073/com.example.affirmations E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.affirmations, PID: 11073
android.view.InflateException: Binary XML file line #2 in com.example.affirmations:layout/list_item: Binary XML file line #2 in com.example.affirmations:layout/list_item: Error inflating class com.google.android.material.card.MaterialCardView
Caused by: android.view.InflateException: Binary XML file line #2 in com.example.affirmations:layout/list_item: Error inflating class com.google.android.material.card.MaterialCardView
Caused by: java.lang.reflect.InvocationTargetException
Steps to reproduce?
Versions
What version of Android Studio are you using?
4.0.2
Additional information
Include screenshots if they would be useful in clarifying the problem.
The text was updated successfully, but these errors were encountered: