java.lang.RuntimeException: Unable to start activity ComponentInfo{com.company.example/com.company.example.MainActivity}: android.view.InflateException: Binary XML file line #45: 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 Stack Overflow by Jason
, 1 year ago
Unable to start activity ComponentInfo{com.company.example/com.company.example.MainActivity}: android.view.InflateException: Binary XML file line #45: Error inflating class ImageButton
via GitHub by PrafulAnand
, 5 months ago
Unable to start activity ComponentInfo{com.example.prafu.testcoursec/com.vlk.multimager.activities.MultiCameraActivity}: android.view.InflateException: Binary XML file line #36: Error inflating class ImageButton
, 2 months ago
Unable to start activity ComponentInfo{com.movile.meditation.vivo/com.movile.meditation.vivo.presentation.journey.view.JourneyActivity}: android.view.InflateException: Binary XML file line #109: Error inflating class ImageButton
via GitHub by jondoes
, 7 months ago
Unable to start activity ComponentInfo{com.multiplefilepicker/com.multiplefilepicker.FilePickerActivity2}: android.view.InflateException: Binary XML file line #90: Error inflating class ImageButton
via GitHub by dikhawk
, 1 year ago
Unable to start activity ComponentInfo{com.growdiaries.android/com.growdiaries.android.ui.VideoPlayerActivity}: android.view.InflateException: Binary XML file line #46: Error inflating class ImageButton
via GitHub by ceduliocezar
, 1 year ago
Unable to start activity ComponentInfo{com.github.pockethub/com.github.pockethub.ui.WelcomeActivity}: android.view.InflateException: Binary XML file line #92: Error inflating class ImageButton
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.company.example/com.company.example.MainActivity}: android.view.InflateException: Binary XML file line #45: Error inflating class ImageButton
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:714)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:756)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:759)
at android.view.LayoutInflater.parseInclude(LayoutInflater.java:840)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:759)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280)
at com.company.example.MainActivity.onCreate(MainActivity.java:70)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)

Users with the same issue

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

Write tip

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