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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Jacques Krause
, 1 year ago
Binary XML file line #179: Error inflating class android.widget.ToggleButton
via Stack Overflow by KnightCoder
, 2 years ago
Binary XML file line #31: Error inflating class android.widget.ImageButton
via Stack Overflow by Eliezer
, 2 years ago
Binary XML file line #36: Error inflating class android.widget.TextView
via Stack Overflow by user3443483
, 1 year ago
Binary XML file line #38: Error inflating class <unknown>
via Stack Overflow by Penguin Blues
, 1 year ago
Binary XML file line #13: Error inflating class android.webkit.WebView
via GitHub by M1cha
, 2 years ago
Binary XML file line #89: Error inflating class <unknown>
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)
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)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.widget.TextView.(TextView.java:614)
at android.widget.Button.(Button.java:107)
at android.widget.CompoundButton.(CompoundButton.java:68)
at android.widget.ToggleButton.(ToggleButton.java:51)
at android.widget.ToggleButton.(ToggleButton.java:64)
at java.lang.reflect.Constructor.constructNative(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
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.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)

Users with the same issue

5 times, 6 months ago
2 times, 10 months ago
8 times, 10 months ago
5 times, 11 months ago
2 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.