MIGRATING TO ANDROIDX In android studio: Click on Refactor -> Migrate to AndroidX In xml: Replace with below: android.support.design.widget.AppBarLayout -> com.google.android.material.appbar.AppBarLayout android.support.v7.widget.Toolbar -> androidx.appcompat.widget.Toolbar android.support.design.widget.TextInputLayout -> com.google.android.material.textfield.TextInputLayout android.support.v7.widget.RecyclerView -> androidx.recyclerview.widget.RecyclerView androidx.core.widget.DrawerLayout -> androidx.drawerlayout.widget.DrawerLayout android.support.design.widget.NavigationView -> com.google.android.material.navigation.NavigationView In Java: Remove all the unused dependency then press ALT+ENTER for the Error Part and choose the library of androidx. As, now many classes has been moved to androidx.
puru world official - A blog on everyday need daily