java.lang.RuntimeException: Unable to start activity ComponentInfo{com.hmoody.tounsi/com.hmoody.tounsi.TheGame}: android.view.InflateException: Binary XML file line #147: Error inflating class <unknown>

Stack Overflow | hmoody | 3 months ago
  1. 0

    AndroidRuntime(29986): Caused by: android.view.InflateException: Binary XML file line #147: Error inflating class <unknown>

    Stack Overflow | 3 months ago | hmoody
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.hmoody.tounsi/com.hmoody.tounsi.TheGame}: android.view.InflateException: Binary XML file line #147: Error inflating class <unknown>
  2. 0

    Resources$NotFoundException: Resource is not a ColorStateList (color or path): } in android

    Stack Overflow | 2 years ago | Pavankumar Kulkarni
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.connecttoserver/com.example.connecttoserver.SecondScreen}: android.view.InflateException: Binary XML file line #93: Error inflating class <unknown>
  3. 0

    When set the background with a selector,it cause resouce not found

    Stack Overflow | 2 years ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.yuanpaiapp.yuanpai.android/com.yuanpaiapp.yuanpai.android.activity.LoginActivity}: android.view.InflateException: Binary XML file line #32: Error inflating class
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Why is this activity crashing?

    Stack Overflow | 1 year ago | Bad Computer
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jutt.dotbot/com.jutt.dotbot.PointsDrawerActivity}: android.view.InflateException: Binary XML file line #65: Error inflating class <unknown>
  6. 0

    Calculator app crashing with java.lang.NullPointerException at android.support.v4.view.ViewPager

    Stack Overflow | 1 year ago | SHASHANK Balaganchi
    java.lang.RuntimeException: Unable to start activity ComponentInfo{shashank_balaganchi.calculator/shashank_balaganchi.calculator.Calculator}: android.view.InflateException: Binary XML file line #26: Error inflating class android.widget.Button
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 #4: <item> tag requires a 'drawable' attribute or child tag defining a drawable

    at android.graphics.drawable.StateListDrawable.inflate()
  2. Android Platform
    Button.<init>
    1. android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:181)
    2. android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:937)
    3. android.graphics.drawable.Drawable.createFromXml(Drawable.java:877)
    4. android.content.res.Resources.loadDrawable(Resources.java:2152)
    5. android.content.res.Resources.loadDrawable(Resources.java:2075)
    6. android.content.res.TypedArray.getDrawable(TypedArray.java:602)
    7. android.view.View.<init>(View.java:3577)
    8. android.widget.TextView.<init>(TextView.java:640)
    9. android.widget.Button.<init>(Button.java:107)
    10. android.widget.Button.<init>(Button.java:103)
    10 frames
  3. Java RT
    Constructor.newInstance
    1. java.lang.reflect.Constructor.constructNative(Native Method)
    2. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    2 frames
  4. Android Platform
    LayoutInflater.createView
    1. android.view.LayoutInflater.createView(LayoutInflater.java:594)
    1 frame
  5. Android
    PhoneLayoutInflater.onCreateView
    1. com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
    1 frame
  6. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.onCreateView(LayoutInflater.java:669)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:694)
    3. android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
    4. android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
    5. android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:492)
    7. android.view.LayoutInflater.inflate(LayoutInflater.java:397)
    8. android.view.LayoutInflater.inflate(LayoutInflater.java:353)
    8 frames
  7. Android
    PhoneWindow.setContentView
    1. com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)
    1 frame
  8. Android Platform
    Activity.setContentView
    1. android.app.Activity.setContentView(Activity.java:2002)
    1 frame
  9. com.hmoody.tounsi
    TheGame.onCreate
    1. com.hmoody.tounsi.TheGame.onCreate(TheGame.java:109)
    1 frame
  10. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5411)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2396)
    5. android.app.ActivityThread.access$800(ActivityThread.java:139)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:149)
    9. android.app.ActivityThread.main(ActivityThread.java:5257)
    9 frames
  11. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  12. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
    2 frames
  13. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame