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
LOCATION:
TypedArrayTypedArrayWrapper.java line 45 in com.airbnb.paris.typed_array_wrappers.TypedArrayTypedArrayWrapper.getDrawable()
EXCEPTION:
org.xmlpull.v1.XmlPullParserException
MESSAGE:
Binary XML file line #2: <item> tag requires a 'drawable' attribute or child tag defining a drawable
I think the correct way is change the color resource from android:color with android:drawable like below.
But I don't know why the original code works on Android 12 and no crash, when crashing on Android 9. Try to look into the source code TextViewStyleApplier and etc, don't find anything related to VERSION.SDK_INT and wrong usage on android:color that only cause the Android 9 crash.
Appreciated that anyone has some insights or ideas.
The text was updated successfully, but these errors were encountered:
Hi Paris developers,
We had an
XmlPullParserException
crash in Android 9 (API level 28) when using customized style.The original code snippet below are the code that crashed.
style resources:
color:
Based on the stacktrace:
I think the correct way is change the color resource from
android:color
withandroid:drawable
like below.But I don't know why the original code works on Android 12 and no crash, when crashing on Android 9. Try to look into the source code
TextViewStyleApplier
and etc, don't find anything related toVERSION.SDK_INT
and wrong usage onandroid:color
that only cause the Android 9 crash.Appreciated that anyone has some insights or ideas.
The text was updated successfully, but these errors were encountered: