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


Solutions on the web

Solution icon of stackoverflow
via Stack Overflow by Humty
, 9 months ago
Unable to start activity ComponentInfo{com.example.namal.fragments/com.example.namal.fragments.MainActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class fragment

Solution icon of stackoverflow
via Stack Overflow by Sidd
, 1 year ago
Unable to start activity ComponentInfo{com.example.android.sunshine.app/com.example.android.sunshine.app.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class fragment

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.projmobileapp.pmdbadd.pmdb/com.projmobileapp.pmdbadd.pmdb.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class fragment

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.google/com.example.google.MainActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class fragment

Solution icon of web
via developpez.net by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.example.auger.fragment2/com.example.auger.fragment2.MainActivity}: android.view.InflateException: Binary XML file line #6: Error inflating class fragment

Solution icon of github
Unable to start activity ComponentInfo{com.koshur.socialnetwork/com.koshur.socialnetwork.activities.MessagingActivity}: android.view.InflateException: Binary XML file line #90: Error inflating class fragment

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.udacity.rucinskic.spotify_streamer/com.udacity.rucinskic.spotify_streamer.SecondaryActivity}: android.view.InflateException: Binary XML file line #66: Error inflating class fragment

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.kazam.salahtimes/com.kazam.salahtimes.MainActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class fragment

Solution icon of web
Unable to start activity ComponentInfo{http://ift.tt/1HYwsLW}: android.view.InflateException: Binary XML file line #1: Error inflating class fragment

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.cogintus/com.google.android.apps.watchme.MainActivity}: android.view.InflateException: Binary XML file line #14: Error inflating class fragment

Stack trace

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.namal.fragments/com.example.namal.fragments.MainActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class fragment
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2695)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769)
	at android.app.ActivityThread.access$900(ActivityThread.java:177)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1430)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5910)
	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:1405)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class fragment
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:763)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
	at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
	at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
	at com.example.namal.fragments.MainActivity.onCreate(MainActivity.java:14)
	at android.app.Activity.performCreate(Activity.java:6178)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2648)
	... 10 more
Caused by: java.lang.RuntimeException: com.example.namal.fragments.MainActivity@1602e5b8 must implement OnFragmentInteractionListener
	at com.example.namal.fragments.Pie1.onAttach(Pie1.java:83)
	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1043)
	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1268)
	at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1370)
	at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2415)
	at android.support.v4.app.FragmentController.onCreateView(FragmentController.java:120)
	at android.support.v4.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:376)
	at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:33)
	at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:75)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:733)
	... 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.