23

After migrating to Androidx packages using Android Studio menu option Refactor -> Refactor to Androidx...

my build.gradle looks like

implementation 'androidx.appcompat:appcompat:1.1.0-alpha01'
implementation 'com.google.android.material:material:1.1.0-alpha01'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'

During run the app, I run into this:

Didn't find class "androidx.core.widget.DrawerLayout" 

It seems the migration tool has same issues

hannes ach
  • 16,247
  • 7
  • 61
  • 84

1 Answers1

72

I was able to solve it by Just replace

androidx.core.widget.DrawerLayout

with

androidx.drawerlayout.widget.DrawerLayout

in every place where it appears.

hannes ach
  • 16,247
  • 7
  • 61
  • 84