android.view.InflateException

Binary XML file line #179: Error inflating class android.widget.ToggleButton

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5290

  • via Stack Overflow by Jacques Krause
    , 10 months ago
    Binary XML file line #179: Error inflating class android.widget.ToggleButton
  • Binary XML file line #37: Error inflating class android.widget.ToggleButton
  • Binary XML file line #19: Error inflating class android.widget.ToggleButton
  • Stack trace

    • android.view.InflateException: Binary XML file line #179: Error inflating class android.widget.ToggleButton at android.view.LayoutInflater.createView(LayoutInflater.java:613) at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685) at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) at android.view.LayoutInflater.rInflate(LayoutInflater.java:749) at android.view.LayoutInflater.inflate(LayoutInflater.java:489) at android.view.LayoutInflater.inflate(LayoutInflater.java:396) at com.candyx.testapp.main.players.PlayerSearchFragment.onCreateView(PlayerSearchFragment.java:67) at android.support.v4.app.Fragment.performCreateView(Fragment.java:2080) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1108) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290) at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:801) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1677) at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:536) at android.os.Handler.handleCallback(Handler.java:615) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4745) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:417) at android.view.LayoutInflater.createView(LayoutInflater.java:587) ... 23 more Caused by: android.content.res.Resources$NotFoundException: File res/drawable/expandable_header_selector.xml from drawable resource ID #0x7f02006d at android.content.res.Resources.loadDrawable(Resources.java:1923) at android.content.res.TypedArray.getDrawable(TypedArray.java:601) at android.widget.TextView.<init>(TextView.java:614) at android.widget.Button.<init>(Button.java:107) at android.widget.CompoundButton.<init>(CompoundButton.java:68) at android.widget.ToggleButton.<init>(ToggleButton.java:51) at android.widget.ToggleButton.<init>(ToggleButton.java:64) ... 26 more Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ic_expand_less_24px.xml from drawable resource ID #0x7f020071 at android.content.res.Resources.loadDrawable(Resources.java:1923) at android.content.res.Resources.getDrawable(Resources.java:659) at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:173) at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:881) at android.graphics.drawable.Drawable.createFromXml(Drawable.java:818) at android.content.res.Resources.loadDrawable(Resources.java:1920) ... 32 more Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #2: invalid drawable tag vector at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:877) at android.graphics.drawable.Drawable.createFromXml(Drawable.java:818) at android.content.res.Resources.loadDrawable(Resources.java:1920) ... 37 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 2 hours ago
    5 times, 2 weeks ago
    Unknown user
    Once, 1 month ago
    2 times, 4 months ago
    8 times, 5 months ago
    20 more bugmates