org.xmlpull.v1.XmlPullParserException: Binary XML file line #17: <nine-patch> requires a valid 9-patch source image

GitHub | luiges90 | 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

    android.content.res.Resources$NotFoundException: File res/drawable/title_bar.xml from drawable resource ID #0x1080095

    GitHub | 7 months ago | luiges90
    org.xmlpull.v1.XmlPullParserException: Binary XML file line #17: <nine-patch> requires a valid 9-patch source image

    Root Cause Analysis

    1. org.xmlpull.v1.XmlPullParserException

      Binary XML file line #17: <nine-patch> requires a valid 9-patch source image

      at android.graphics.drawable.NinePatchDrawable.updateStateFromTypedArray()
    2. Android Platform
      FrameLayout.<init>
      1. android.graphics.drawable.NinePatchDrawable.updateStateFromTypedArray(NinePatchDrawable.java:459)
      2. android.graphics.drawable.NinePatchDrawable.inflate(NinePatchDrawable.java:413)
      3. android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1217)
      4. android.graphics.drawable.Drawable.createFromXml(Drawable.java:1126)
      5. android.content.res.Resources.createFromXml(Resources.java:2964)
      6. android.content.res.Resources.loadDrawableForCookie(Resources.java:2676)
      7. android.content.res.Resources.loadDrawable(Resources.java:2580)
      8. android.content.res.MiuiResources.loadDrawable(MiuiResources.java:387)
      9. android.content.res.TypedArray.getDrawable(TypedArray.java:872)
      10. android.view.View.<init>(View.java)
      11. android.view.ViewGroup.<init>(ViewGroup.java)
      12. android.widget.FrameLayout.<init>(FrameLayout.java)
      13. android.widget.FrameLayout.<init>(FrameLayout.java)
      14. android.widget.FrameLayout.<init>(FrameLayout.java)
      14 frames
    3. Java RT
      Constructor.newInstance
      1. java.lang.reflect.Constructor.newInstance(Constructor.java)
      1 frame
    4. Android Platform
      LayoutInflater.createView
      1. android.view.LayoutInflater.createView(LayoutInflater.java:623)
      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:698)
      2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:766)
      3. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:708)
      4. android.view.LayoutInflater.rInflate(LayoutInflater.java:839)
      5. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:802)
      6. android.view.LayoutInflater.inflate(LayoutInflater.java:519)
      7. android.view.LayoutInflater.inflate(LayoutInflater.java:427)
      8. android.view.LayoutInflater.inflate(LayoutInflater.java:374)
      8 frames
    7. Android
      PhoneWindow.getDecorView
      1. com.android.internal.policy.PhoneWindow.generateLayout(PhoneWindow.java:3909)
      2. com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:3981)
      3. com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java:1969)
      3 frames
    8. com.mixpanel.android
      ViewCrawler$LifecycleCallbacks.onActivityResumed
      1. com.mixpanel.android.viewcrawler.EditState.applyIntendedEdits(EditState.java:98)
      2. com.mixpanel.android.viewcrawler.EditState.applyEditsOnUiThread(EditState.java:83)
      3. com.mixpanel.android.viewcrawler.EditState.add(EditState.java:37)
      4. com.mixpanel.android.viewcrawler.ViewCrawler$LifecycleCallbacks.onActivityResumed(ViewCrawler.java:181)
      4 frames
    9. Android Platform
      Activity.onResume
      1. android.app.Application.dispatchActivityResumed(Application.java:218)
      2. android.app.Activity.onResume(Activity.java:1220)
      2 frames
    10. com.example
      LaunchActivity.onResume
      1. com.example.LaunchActivity.onResume(LaunchActivity.java:277)
      1 frame
    11. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1259)
      2. android.app.Activity.performResume(Activity.java:6379)
      3. android.app.ActivityThread.performResumeActivity(ActivityThread.java:3099)
      4. android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3141)
      5. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2488)
      6. android.app.ActivityThread.access$900(ActivityThread.java:153)
      7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
      8. android.os.Handler.dispatchMessage(Handler.java:102)
      9. android.os.Looper.loop(Looper.java:148)
      10. android.app.ActivityThread.main(ActivityThread.java:5442)
      10 frames
    12. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      1 frame
    13. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
      2 frames