Я не инициализировал компоненты в моем StorageActivity, думая, что проблема была там, и когда я перезапускаю программу, я все еще вижу ту же ошибку. Простите мой английский
ПРИМЕЧАНИЕ: я использую androidX
RuntimeException: не удалось запустить действие ComponentInfo {com.example.shopeeproject / com.example.shopeeproject.StorageActivity}: android.view.InflateException: строка двоичного файла XML № 23: строка двоичного файла XML № 23: ошибка расширения класса androidx.design. widget.NavigationView
МОЙ XML-ФАЙЛ
<?xml version="1.0" encoding="utf-8"?>
<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"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".StorageActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>
</LinearLayout>
<androidx.design.widget.NavigationView
app:headerLayout="@layout/drawer_header"
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
app:itemIconTint="#000000"
app:itemTextColor="#000000"
app:menu="@menu/menu">
</androidx.design.widget.NavigationView>
</androidx.drawerlayout.widget.DrawerLayout >