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

Solutions on the web53095

  • via Stack Overflow by Benjamin G
    , 5 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 Stack Overflow by Drawlix
    , 1 year ago
    Unable to start activity ComponentInfo{com.de.xx/com.de.xx.MainActivity}: android.view.InflateException: Binary XML file line #23: Error inflating class fragment
  • Unable to start activity ComponentInfo{http://ift.tt/1DZcM49}: android.view.InflateException: Binary XML file line #23: Error inflating class fragment
  • Stack trace

    • 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 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3190) 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) Caused by: android.view.InflateException: Binary XML file line #23: Error inflating class fragment at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:770) 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 com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:450) 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) ... 10 more Caused by: java.lang.RuntimeException: com.example.user.sample.MainActivity@197f8eef must implement OnListFragmentInteractionListener 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.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:79) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:740) ... 20 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    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.