Tags
Android
Asked 3 years ago
4 Oct 2021
Views 587
Chasity

Chasity posted

Android - DrawerLayout missing in androidx core

Class referenced in the layout file, androidx.core.widget.DrawerLayout, was not found in the project or the libraries


<androidx.core.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">
</androidx.drawerlayout.widget.DrawerLayout>
steave

steave
answered Oct 4 '21 00:00


<androidx.core.widget.DrawerLayout


replace with

<androidx.drawerlayout.widget.DrawerLayout


and also

</androidx.core.widget.DrawerLayout>


replace with

</androidx.drawerlayout.widget.DrawerLayout>
Post Answer