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

GitHub | wenmingvs | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    【CrashLog】 WeiSwift 2016-08-18 23:01:12:28

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

    Root Cause Analysis

    1. 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()
    2. Android Platform
      LinearLayout.<init>
      1. android.graphics.drawable.StateListDrawable.inflateChildElements(StateListDrawable.java:182)
      2. android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:115)
      3. android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:2549)
      4. android.graphics.drawable.Drawable.createFromXml(Drawable.java:2320)
      5. android.content.res.Resources.loadDrawableForCookie(Resources.java:4206)
      6. android.content.res.Resources.loadDrawable(Resources.java:4085)
      7. android.content.res.Resources.loadDrawable(Resources.java:3935)
      8. android.content.res.TypedArray.getDrawable(TypedArray.java:886)
      9. android.content.res.XResources$XTypedArray.getDrawable(XResources.java:1375)
      10. android.view.View.<init>(View.java:4225)
      11. android.view.ViewGroup.<init>(ViewGroup.java:589)
      12. android.widget.LinearLayout.<init>(LinearLayout.java:202)
      13. android.widget.LinearLayout.<init>(LinearLayout.java:198)
      14. android.widget.LinearLayout.<init>(LinearLayout.java:194)
      14 frames
    3. Java RT
      Constructor.newInstance
      1. java.lang.reflect.Constructor.newInstance(Native Method)
      1 frame
    4. Android Platform
      LayoutInflater.createView
      1. android.view.LayoutInflater.createView(LayoutInflater.java:631)
      1 frame
    5. Android
      PhoneLayoutInflater.onCreateView
      1. com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
      1 frame
    6. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.onCreateView(LayoutInflater.java:706)
      2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:774)
      3. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:716)
      4. android.view.LayoutInflater.rInflate(LayoutInflater.java:847)
      5. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)
      6. android.view.LayoutInflater.inflate(LayoutInflater.java:527)
      6 frames
    7. XposedBridge
      XposedBridge.handleHookedMethod
      1. de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
      2. de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:749)
      2 frames