Also below is the code text from the same snippet that has been attached.
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
2
Answers
Try doing any of these methods:
If neither of them work the remove the dependency and add it again and tell me the build output when gradle sync finishes
It may possible that your studio cache is corrupted;
So
C:
Drive; for eg. it should likeC:Usershp(Your_User_Name).AndroidStudio4.0systemcaches
… Delete thiscaches
folder.Now start your project again, issue will gone now.
Hope this may help to someone.