java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.user.sample/com.example.user.sample.MainActivity}: android.view.InflateException: Binary XML file line #23: 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 Stack Overflow by Benjamin G
, 9 months ago
Unable to start activity ComponentInfo{com.example.user.sample/com.example.user.sample.MainActivity}: android.view.InflateException: Binary XML file line #23: Error inflating class fragment
via com.br by Unknown author, 1 year ago
Unable to start activity ComponentInfo{br.com.lemarq.sas/br.com.lemarq.sas.ExibeMapaStreetView}: android.view.InflateException: Binary XML file line Error inflating class fragment
via Stack Overflow by Anna Huynh
, 1 year ago
Unable to start activity ComponentInfo{anna.banana.bbox/anna.banana.bbox.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class fragment
via Stack Overflow by JonniBravo
, 2 years ago
Unable to start activity ComponentInfo{com.ff.org/com.ff.org.l2maps.Locbrad}: android.view.InflateException: Binary XML file line #1: Error inflating class fragment
via blogspot.kr by Unknown author, 1 year ago
Unable to start activity ComponentInfo{http://ift.tt/1Td9pkx}: android.view.InflateException: Binary XML file line #2: Error inflating class fragment
via Stack Overflow by bdg
, 1 year ago
Unable to start activity ComponentInfo{com.example.beng09715.restaurant_finder/com.example.beng09715.restaurant_finder.Cocktails}: android.view.InflateException: Binary XML file line #1: Error inflating class fragment
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.user.sample/com.example.user.sample.MainActivity}: android.view.InflateException: Binary XML file line #23: Error inflating class fragment
at com.example.user.sample.MenuFragment.onAttach(MenuFragment.java:75)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1231)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1472)
at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1691)
at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:3413)
at android.support.v4.app.FragmentController.onCreateView(FragmentController.java:120)
at android.support.v4.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:378)
at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:33)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:740)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)
at android.view.LayoutInflater.inflate(LayoutInflater.java:511)
at android.view.LayoutInflater.inflate(LayoutInflater.java:415)
at android.view.LayoutInflater.inflate(LayoutInflater.java:366)
at android.app.Activity.setContentView(Activity.java:2366)
at com.example.user.sample.MainActivity.onCreate(MainActivity.java:16)
at android.app.Activity.performCreate(Activity.java:6575)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3143)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3300)
at android.app.ActivityThread.access$1000(ActivityThread.java:211)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1705)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6946)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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