java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mycompany.myapp2/com.mycompany.myapp2.MainActivity}: android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class android.support.design.widget.NavigationView

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 Esby
, 1 year ago
Unable to start activity ComponentInfo{com.mycompany.myapp2/com.mycompany.myapp2.MainActivity}: android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class android.support.design.widget.NavigationView
via Stack Overflow by Boris Ruzanov
, 7 months ago
Unable to start activity ComponentInfo{com.example.android.grouper4/com.example.android.grouper4.MainActivity}: android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class item
via Stack Overflow by Ankit Chhabra
, 1 year ago
Unable to start activity ComponentInfo: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView
via Stack Overflow by Osama Shaheen
, 9 months ago
Unable to start activity ComponentInfo{MainActivity}: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView
via GitHub by lobo12
, 11 months ago
Unable to start activity ComponentInfo{net.wequick.example.small/net.wequick.example.small.app.main.MainActivity}: android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class android.support.v7.widget.Toolbar
via Stack Overflow by CaptainForge
, 1 year ago
Unable to start activity ComponentInfo{xyz.mydomain.socialmaps/xyz.mydomain.socialmaps.activities.followersSystem.FollowingListActivity}: android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class fragment
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mycompany.myapp2/com.mycompany.myapp2.MainActivity}: android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class android.support.design.widget.NavigationView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)

Users with the same issue

66 times, 3 weeks ago
Once, 2 months ago
33 times, 3 months ago
8 times, 3 months ago
468 times, 4 months ago

Write tip

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