使用 Android Studio 菜单选项 Refactor -> Refactor to Androidx 迁移到 Androidx 包后...
我的 build.gradle 看起来像
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'
在运行应用程序的过程中,我遇到了这个:
Didn't find class "androidx.core.widget.DrawerLayout"
看来迁移工具也有同样的问题
最佳答案
我能够通过以下方式解决它 只需更换
androidx.core.widget.DrawerLayout
与
androidx.drawerlayout.widget.DrawerLayout
在它出现的每一个地方。
关于android - 没有找到类 "androidx.core.widget.DrawerLayout",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53635180/