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

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by JehandadK
, 1 year ago
Binary XML file line #46: Error inflating class ImageButton
via Stack Overflow by DD225
, 1 year ago
Binary XML file line #16: Error inflating class EditText
via Stack Overflow by Vijay
, 2 years ago
Binary XML file line #48: Error inflating class fragment
via Stack Overflow by Unknown author, 2 years ago
Binary XML file line #7: Error inflating class fragment
via GitHub by bmutinda
, 1 year ago
Binary XML file line #21: Error inflating class com.mikepenz.iconics.view.IconicsImageView
via Stack Overflow by user3781876
, 2 years ago
Binary XML file line #8: Error inflating class com.vinayrraj.flipdigit.lib.FlipmeterSpinner
android.view.InflateException: Binary XML file line #46: Error inflating class ImageButton
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:881)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:822)
at android.content.res.Resources.loadDrawable(Resources.java:1955)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.widget.ImageView.(ImageView.java:120)
at android.widget.ImageButton.(ImageButton.java:87)
at android.support.v7.widget.AppCompatImageButton.(AppCompatImageButton.java:57)
at android.support.v7.widget.AppCompatImageButton.(AppCompatImageButton.java:53)
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:118)
at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1013)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:675)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at com.afollestad.easyvideoplayer.EasyVideoPlayer.onFinishInflate(EasyVideoPlayer.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:754)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at com.afollestad.materialcamera.internal.PlaybackVideoFragment.onCreateView(PlaybackVideoFragment.java:84)
at android.app.Fragment.performCreateView(Fragment.java:1699)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:885)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1057)
at android.app.BackStackRecord.run(BackStackRecord.java:682)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1435)
at android.app.FragmentManagerImpl$1.run(FragmentManager.java:441)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
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:793)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
5 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
2 times, 8 months ago

Write tip

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