java.lang.RuntimeException: Unable to start activity ComponentInfo{com.clabs.majorproject/com.clabs.majorproject.HomeActivity}: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.widget.NavigationView


Solutions on the web

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.clabs.majorproject/com.clabs.majorproject.HomeActivity}: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.widget.NavigationView

Solution icon of github
via GitHub by neerajgoel
, 1 year ago
Unable to start activity ComponentInfo{qpapers.gully03neeraj1992neeraj.com.qpapers/qpapers.gully03neeraj1992neeraj.com.qpapers.MainActivity}: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.widget.NavigationView

Solution icon of github
Unable to start activity ComponentInfo{com.uttarainfo.uttara/com.uttarainfo.uttara.activities.MainActivity_}: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.widget.NavigationView

Solution icon of stackoverflow
Unable to start activity ComponentInfo{edu.upc.idi.nebot.jonathan.recipeme/edu.upc.idi.nebot.jonathan.recipeme.MainActivity}: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.widget.NavigationView

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.spiderlogic.spiderlibrary/com.spiderlogic.spiderlibrary.activity.UserHome}: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.widget.NavigationView

Solution icon of github
via GitHub by neerajgoel
, 1 year ago
Unable to start activity ComponentInfo{qpapers.gully03neeraj1992neeraj.com.qpapers/qpapers.gully03neeraj1992neeraj.com.qpapers.MainActivity}: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.widget.NavigationView

Solution icon of stackoverflow
via Stack Overflow by Jacques Krause
, 1 year ago
Unable to start activity ComponentInfo{com.candyx.testapp.activity.MainActivity}: android.view.InflateException: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.raimikarim.arabicconjugator/com.raimikarim.arabicconjugatorpro.Conjugation.SmartConjugateActivity}: android.view.InflateException: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView

Solution icon of stackoverflow
via Stack Overflow by Carlo Cepollaro
, 11 months ago
Unable to start activity ComponentInfo{com.example.carlo.application/com.example.carlo.clashofschools.MainActivity}: android.view.InflateException: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.aa/com.example.aa.MainActivity}: android.view.InflateException: Binary XML file line #28: Error inflating class android.support.design.widget.NavigationView

Stack trace

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.clabs.majorproject/com.clabs.majorproject.HomeActivity}: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.widget.NavigationView
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)
	at android.app.ActivityThread.access$600(ActivityThread.java:165)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loop(Looper.java:194)
	at android.app.ActivityThread.main(ActivityThread.java:5391)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:525)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.widget.NavigationView
	at android.view.LayoutInflater.createView(LayoutInflater.java:613)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
	at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
	at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
	at com.clabs.majorproject.HomeActivity.onCreate(HomeActivity.java:22)
	at android.app.Activity.performCreate(Activity.java:5122)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1150)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315)
	... 11 more
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Constructor.constructNative(Native Method)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
	at android.view.LayoutInflater.createView(LayoutInflater.java:587)
	... 22 more
Caused by: java.lang.NoClassDefFoundError: android.support.design.internal.NavigationMenuPresenter
	at android.support.design.widget.NavigationView.<init>(NavigationView.java:80)
	at android.support.design.widget.NavigationView.<init>(NavigationView.java:92)
	... 25 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

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 more bugmates