Tags
Android
Asked 3 years ago
4 Oct 2021
Views 2736
Connor

Connor posted

Android - Cannot resolve class android.support.design.widget.NavigationView

Cannot resolve class android.support.design.widget.NavigationView



<android.support.design.widget.NavigationView
        android:id="@+id/nav_view"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        android:fitsSystemWindows="true">
    </android.support.design.widget.NavigationView>

[/code]
chirag

chirag
answered Oct 4 '21 00:00


<android.support.design.widget.NavigationView

replace with

<com.google.android.material.navigation.NavigationView


and

</android.support.design.widget.NavigationView>

replace with

 </com.google.android.material.navigation.NavigationView>

Post Answer