android.view.InflateException: Binary XML file line #21: Error inflating class ImageView

Stack Overflow | josemigallas | 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

    Error inflating class ImageView caused by NumberFormatException

    Stack Overflow | 9 months ago | josemigallas
    android.view.InflateException: Binary XML file line #21: Error inflating class ImageView
  2. 0

    Crash during inflating view with vector drawable tint color selector

    Stack Overflow | 9 months ago | Alex
    android.view.InflateException: Binary XML file line #15: Error inflating class ImageView
  3. 0

    Fatal Exception

    GitHub | 12 months ago | bowyer-app
    java.lang.NumberFormatException: Invalid int: "res/color/abc_secondary_text_material_light.xml"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crashes for Jelly Bean devices

    GitHub | 10 months ago | sungjin0213
    android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
  6. 0

    Gucci Mane Ice Cream Tattoo

    GitHub | 1 year ago | Dalamo
    java.lang.RuntimeException: Unable to start activity ComponentInfo{me.ccrama.redditslide/me.ccrama.redditslide.Activities.SubredditOverview}: android.view.InflateException: Binary XML file line #43: Error inflating class ImageView
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. java.lang.NumberFormatException

    Invalid int: "res/color/tertiary_text_light.xml"

    at java.lang.Integer.invalidInt()
  2. Java RT
    Integer.parseInt
    1. java.lang.Integer.invalidInt(Integer.java:137)
    2. java.lang.Integer.parse(Integer.java:374)
    3. java.lang.Integer.parseInt(Integer.java:365)
    3 frames
  3. Android Platform
    ImageView.<init>
    1. com.android.internal.util.XmlUtils.convertValueToInt(XmlUtils.java:122)
    2. android.content.res.TypedArray.getInt(TypedArray.java:255)
    3. android.widget.ImageView.<init>(ImageView.java:155)
    3 frames
  4. Android v7
    AppCompatDelegateImplV7.onCreateView
    1. android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:57)
    2. android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:53)
    3. android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
    4. android.support.v7.app.AppCompatDelegateImplV7.createView(AppCompatDelegateImplV7.java:1008)
    5. android.support.v7.app.AppCompatDelegateImplV7.onCreateView(AppCompatDelegateImplV7.java:1067)
    5 frames
  5. Android Support v4
    LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView
    1. android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
    1 frame
  6. Android Platform
    LayoutInflater.createViewFromTag
    1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:684)
    1 frame