java.lang.RuntimeException: Unable to start activity ComponentInfo{io.github.meness.easyintro.app/io.github.meness.easyintro.app.MyEasyIntro}: android.view.InflateException: Binary XML file line #24: Error inflating class io.github.meness.easyintro.views.LeftToggleIndicator

Stack Overflow | sathish gadde | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Android app layout inflating error in below SDK 22

    Stack Overflow | 6 months ago | sathish gadde
    java.lang.RuntimeException: Unable to start activity ComponentInfo{io.github.meness.easyintro.app/io.github.meness.easyintro.app.MyEasyIntro}: android.view.InflateException: Binary XML file line #24: Error inflating class io.github.meness.easyintro.views.LeftToggleIndicator
  2. 0

    Example app and my own app don't work on lower SDK's

    GitHub | 7 months ago | halileohalilei
    java.lang.RuntimeException: Unable to start activity ComponentInfo{io.github.meness.easyintro.app/io.github.meness.easyintro.app.MyEasyIntro}: android.view.InflateException: Binary XML file line #24: Error inflating class io.github.meness.easyintro.views.LeftToggleIndicator

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Can't convert to color: type=0x2

      at android.content.res.TypedArray.getColor()
    2. Android Platform
      Drawable.createFromXmlInner
      1. android.content.res.TypedArray.getColor(TypedArray.java:327)
      2. android.graphics.drawable.GradientDrawable.inflate(GradientDrawable.java:970)
      3. android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:937)
      3 frames