java.lang.RuntimeException: Unable to start activity ComponentInfo{cmackie.nationalprofitgraphgenerator/cmackie.nationalprofitgraphgenerator.Option_Activity}: android.view.InflateException: Binary XML file line #2: Error inflating class resources

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 cmackie21
, 1 year ago
Unable to start activity ComponentInfo{cmackie.nationalprofitgraphgenerator/cmackie.nationalprofitgraphgenerator.Option_Activity}: android.view.InflateException: Binary XML file line #2: Error inflating class resources
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 Muhammad Al-kady
, 1 year ago
Unable to start activity ComponentInfo{muhammad.ibrahim.alkady.al_quran_al_kareem.radio/muhammad.ibrahim.alkady.al_quran_al_kareem.radio.activities.MainActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #126: Binary XML file line #126: Error inflating class muhammad.ibrahim.alkady.al_quran_al_kareem.radio.widget.MiniMediaController
via GitHub by jbmlaird
, 1 month ago
Unable to start activity ComponentInfo{bj.draggablepaneltest/bj.draggablepaneltest.main.MainActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class com.github.pedrovgs.DraggableView
via GitHub by praveeng145
, 1 year ago
Unable to start activity ComponentInfo{com.mobile.client.android/com.mobile.client.android.ui.activities.DashboardActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class <unknown>
via Stack Overflow by Jordan Morse
, 1 year ago
Unable to start activity ComponentInfo{com.example.jam7733.myapplication/com.example.jam7733.myapplication.MainActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class android.widget.RelativeLayout
java.lang.RuntimeException: Unable to start activity ComponentInfo{cmackie.nationalprofitgraphgenerator/cmackie.nationalprofitgraphgenerator.Option_Activity}: android.view.InflateException: Binary XML file line #2: Error inflating class resources
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)

Users with the same issue

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

Write tip

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