Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 527
hannes ach Avatar asked Dec 05 '18 15:12

hannes ach


1 Answers

I was able to solve it by Just replace

androidx.core.widget.DrawerLayout

with

androidx.drawerlayout.widget.DrawerLayout

in every place where it appears.

like image 95
hannes ach Avatar answered Nov 04 '22 11:11

hannes ach