Error inflating class androidx.constraintlayout.widget.ConstraintLayout

前端 未结 12 1188
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-29 18:28

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

I\'m getting the following error:

Error inf         


        
12条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-29 19:08

    In my case i just had to update the androidx dependencies to the latest version.

    EDIT In build.gradle (app) you have to look for the dependencies which contains androidx. Android studio will show you information about the latest versions of these dependencies. Using that information just the change the dependency version.

提交回复
热议问题