android.view.InflateException: Binary XML file line #2: Error inflating class TextView

GitHub | QuantumBadger | 9 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

    GitHub comment 309#228547091

    GitHub | 9 months ago | QuantumBadger
    android.view.InflateException: Binary XML file line #2: Error inflating class TextView
  2. 0

    Is it possible to use VectorDrawable in Buttons and TextViews using android:DrawableRight?

    Stack Overflow | 1 year ago | giulio
    java.lang.RuntimeException: Unable to start activity ComponentInfo{au.com.angryitguy.testsvg/au.com.angryitguy.testsvg.MainActivity}: android.view.InflateException: Binary XML file line #13: Error inflating class TextView
  3. 0

    android.view.InflateException: Binary XML file line #87: Error inflating class TextView

    Stack Overflow | 10 months ago | Travis T3PO Keating
    java.lang.RuntimeException: Unable to start activity ComponentInfo{edu.ggc.tkeating.grizzlycolorsapptkeating/edu.ggc.tkeating.grizzlycolorsapptkeating.MainActivity}: android.view.InflateException: Binary XML file line #87: Error inflating class TextView
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    UnsupportedOperationException: Can't convert to color: type=0x2

    GitHub | 1 year ago | konifar
    android.content.res.Resources$NotFoundException: File res/drawable/clickable_primary.xml from drawable resource ID #0x7f020049
  6. 0

    Issue 198891 - android - Instant Run: Couldn't show toast - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 1 year ago
    android.view.InflateException: Binary XML file line #27: Binary XML file line #27: Error inflating class TextView

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.xmlpull.v1.XmlPullParserException

      Binary XML file line #1: invalid drawable tag vector

      at android.graphics.drawable.Drawable.createFromXmlInner()
    2. Android Platform
      TextView.<init>
      1. android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:881)
      2. android.graphics.drawable.Drawable.createFromXml(Drawable.java:822)
      3. android.content.res.Resources.loadDrawable(Resources.java:1955)
      4. android.content.res.TypedArray.getDrawable(TypedArray.java:601)
      5. android.widget.TextView.<init>(TextView.java:757)
      5 frames
    3. Android v7
      AppCompatDelegateImplV7.onCreateView
      1. android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:60)
      2. android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:56)
      3. android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
      4. android.support.v7.app.AppCompatDelegateImplV7.createView(AppCompatDelegateImplV7.java:980)
      5. android.support.v7.app.AppCompatDelegateImplV7.onCreateView(AppCompatDelegateImplV7.java:1039)
      5 frames
    4. Android Support v4
      LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView
      1. android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
      1 frame
    5. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:675)
      2. android.view.LayoutInflater.inflate(LayoutInflater.java:466)
      3. android.view.LayoutInflater.inflate(LayoutInflater.java:396)
      3 frames
    6. org.quantumbadger.redreader
      PostListingFragment$1.handleMessage
      1. org.quantumbadger.redreader.fragments.PostListingFragment$1.handleMessage(PostListingFragment.java:141)
      1 frame
    7. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:99)
      2. android.os.Looper.loop(Looper.java:137)
      3. android.app.ActivityThread.main(ActivityThread.java:5041)
      3 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
      2 frames
    10. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame