org.xmlpull.v1.XmlPullParserException: Binary XML file line #4: <item> tag requires a 'drawable' attribute or child tag defining a drawable

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by wenmingvs
, 1 year ago
Binary XML file line #4: <item> tag requires a 'drawable' attribute or child tag defining a drawable
via GitHub by vext01
, 1 year ago
Binary XML file line #4: <item> tag requires a 'drawable' attribute or child tag defining a drawable
via Stack Overflow by surya
, 1 year ago
Binary XML file line #4: <item> tag requires a 'drawable' attribute or child tag defining a drawable
via GitHub by jeffdgr8
, 1 year ago
Binary XML file line #18: <item> tag requires a 'drawable' attribute or child tag defining a drawable
via Stack Overflow by AwaisMajeed
, 3 months ago
Binary XML file line #7: <item> tag requires a 'drawable' attribute or child tag defining a drawable
org.xmlpull.v1.XmlPullParserException: Binary XML file line #4: <item> tag requires a 'drawable' attribute or child tag defining a drawable
at android.graphics.drawable.StateListDrawable.inflateChildElements(StateListDrawable.java:182)
at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:115)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:2549)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:2320)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:4206)
at android.content.res.Resources.loadDrawable(Resources.java:4085)
at android.content.res.Resources.loadDrawable(Resources.java:3935)
at android.content.res.TypedArray.getDrawable(TypedArray.java:886)
at android.content.res.XResources$XTypedArray.getDrawable(XResources.java:1375)
at android.view.View.(View.java:4225)
at android.view.ViewGroup.(ViewGroup.java:589)
at android.widget.LinearLayout.(LinearLayout.java:202)
at android.widget.LinearLayout.(LinearLayout.java:198)
at android.widget.LinearLayout.(LinearLayout.java:194)
at android.view.LayoutInflater.createView(LayoutInflater.java:631)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:706)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:774)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:716)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:847)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)
at android.view.LayoutInflater.inflate(LayoutInflater.java:527)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)

Users with the same issue

2 times, 1 year ago
3 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.