java.lang.RuntimeException: Unable to start activity ComponentInfo{musicgenie.com.musicgenie/musicgenie.com.musicgenie.activity.MainActivity}: android.view.InflateException: Binary XML file line #42: Binary XML file line #42: Error inflating class fragment

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 GitHub by saurabhjn76
, 6 months ago
Unable to start activity ComponentInfo{musicgenie.com.musicgenie/musicgenie.com.musicgenie.activity.MainActivity}: android.view.InflateException: Binary XML file line #42: Binary XML file line #42: Error inflating class fragment
via GitHub by saurabhjn76
, 1 year ago
Unable to start activity ComponentInfo{musicgenie.com.musicgenie/musicgenie.com.musicgenie.activity.MainActivity}: android.view.InflateException: Binary XML file line #42: Binary XML file line #42: Error inflating class fragment
via Stack Overflow by Brandon Loehle
, 1 year ago
Unable to start activity ComponentInfo{com.example.brandon.transitioningfragments/com.example.brandon.transitioningfragments.MainActivity}: android.view.InflateException: Binary XML file line #42: Binary XML file line #42: Error inflating class fragment
via GitHub by nealsanche
, 1 year ago
Unable to start activity ComponentInfo{com.acme.firebans/com.acme.firebans.activities.MainActivity}: android.view.InflateException: Binary XML file line #42: Binary XML file line #42: Error inflating class com.mapbox.mapboxsdk.maps.MapView
via Stack Overflow by Norman
, 10 months ago
Unable to start activity ComponentInfo{com.laudien.p1xelfehler.batterywarner_pro/com.laudien.p1xelfehler.batterywarner.Activities.SettingsActivity.SettingsActivity}: android.view.InflateException: Binary XML file line #42: Error inflating class com.laudien.p1xelfehler.batterywarner.Activities.SettingsActivity.SliderPreference
java.lang.RuntimeException: Unable to start activity ComponentInfo{musicgenie.com.musicgenie/musicgenie.com.musicgenie.activity.MainActivity}: android.view.InflateException: Binary XML file line #42: Binary XML file line #42: Error inflating class fragment
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2584)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 10 months ago
3 times, 10 months ago
32 times, 1 year ago
144 times, 1 year ago
Once, 1 year ago
109 more bugmates

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