Android项目迁移到Androidx的问题解决

1. Binary XML file line #2: Error inflating class androidx.core.widget.DrawerLayout

将androidx.core.widget.DrawerLayout替换为androidx.drawerlayout.widget.DrawerLayout

2. Binary XML file line #2: Error inflating class androidx.constraintlayout.ConstraintLayout

将androidx.constraintlayout.ConstraintLayout替换为androidx.constraintlayout.widget.ConstraintLayout

原文地址:https://www.cnblogs.com/pozhu15/p/12726942.html