Error inflating class androidx.constraintlayout.ConstraintLayout after migration to androidx

后端 未结 17 1335
[愿得一人]
[愿得一人] 2020-11-27 14:24

I just made a migration to androidx through Android Studio menu option Refactor -> Refactor to AndroidX

I\'m getting the following

17条回答
  •  情书的邮戳
    2020-11-27 15:06

    1. Find all default before to click Refactor -> Refactor to AndroidX
    2. Open this https://developer.android.com/jetpack/androidx/migrate/class-mappings and find "android.support.v4.widget.DrawerLayout". In same line AndroidX class name is "androidx.drawerlayout.widget.DrawerLayout" copy it.

    1. Replace all "android.support.v4.widget.DrawerLayout" to "androidx.drawerlayout.widget.DrawerLayout" in your project"s code, layout and menu. After all replace it will work.

    I mean find mapping and use it in whole project.

提交回复
热议问题