android.view.Inflateexception: Binary XML file line #16: Error inflating class android.support.design.widget.Navigationview

Asked

Viewed 372 times

0

I can’t make a mistake: android.view.Inflateexception: Binary XML file line #16: Error inflating class android.support.design.widget.Navigationview

<include
    layout="@layout/app_bar_options_user"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

<android.support.design.widget.NavigationView (Erro Nessa linha)
    android:id="@+id/nav_view"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:fitsSystemWindows="true"
    app:headerLayout="@layout/nav_header_options_user2"
    app:menu="@menu/activity_options_user_drawer" />

  • Douglas, can you put the whole stacktrace in the question? Sometimes it’s a mistake to inflate the others Views of NavigationView. At first I see no error in this layout section.

  • I managed to solve problem, it was an xml that was giving error.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.