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

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 Google Groups by uchitomo, 1 year ago
via Google Groups by Unknown author, 5 months ago
Binary XML file line #7: Error inflating class fragment
via Google Groups by Makoto Yamazaki, 4 months ago
via Stack Overflow by King Luy
, 2 years ago
Binary XML file line #8: \ Error inflating class fragment
via Stack Overflow by Spongeboss
, 1 year ago
Binary XML file line #18: Error inflating class org.me.TicTacToe.ui.TicTacToeBoard
via Stack Overflow by antedesk
, 2 years ago
Binary XML file line #2: Error inflating class fragment
android.view.InflateException: Binary XML file line #45: Error inflating class
at android.graphics.drawable.DrawableContainer$DrawableContainerState.addChild(DrawableContainer.java:349)
at android.graphics.drawable.StateListDrawable$StateListState.addStateSet(StateListDrawable.java:267)
at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:175)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:787)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:728)
at android.content.res.Resources.loadDrawable(Resources.java:1936)
at android.content.res.TypedArray.getDrawable(TypedArray.java:653)
at android.view.View.(View.java:1961)
at android.widget.ImageView.(ImageView.java:112)
at android.widget.ImageButton.(ImageButton.java:85)
at android.widget.ImageButton.(ImageButton.java:81)
at java.lang.reflect.Constructor.constructNative(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:505)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
at android.app.Activity.setContentView(Activity.java:1663)
at me.Testapp.android.TestappMenu.onCreate(TestappMenu.java:118)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
at android.app.ActivityThread.access$1500(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3691)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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