java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ovidioreyna.android.newsreportapp/com.ovidioreyna.android.newsreportapp.SettingsActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: 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

Samebug tips

,

Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by Ovidio Reyna
, 1 year ago
Unable to start activity ComponentInfo{com.ovidioreyna.android.newsreportapp/com.ovidioreyna.android.newsreportapp.SettingsActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class fragment
via Stack Overflow by Ovidio Reyna
, 1 year ago
Unable to start activity ComponentInfo{com.ovidioreyna.android.newsreportapp/com.ovidioreyna.android.newsreportapp.SettingsActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class fragment
via Stack Overflow by dennisgon
, 1 year ago
Unable to start activity ComponentInfo{com.example.dennis.peta/com.example.dennis.peta.MapsActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class fragment
via Stack Overflow by chirag panchal
, 1 year ago
Unable to start activity ComponentInfo{com.example.admin.fragmentsmemecreator23/com.example.admin.fragmentsmemecreator23.MainActivity}: android.view.InflateException: Binary XML file line #24: Binary XML file line #2: Binary XML file line #2: Error inflating class <unknown>
via Stack Overflow by user2125673
, 2 years ago
Unable to start activity ComponentInfo{com.android.maptest/com.android.maptest.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class fragment
via Stack Overflow by Garysully1986
, 1 year ago
Unable to start activity ComponentInfo{components.hfad.com.components/components.hfad.com.components.DetailActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class fragment
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ovidioreyna.android.newsreportapp/com.ovidioreyna.android.newsreportapp.SettingsActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class fragment
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)

Users with the same issue

66 times, 3 weeks ago
Once, 2 months ago
33 times, 3 months ago
8 times, 3 months ago
468 times, 4 months ago

Write tip

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