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

后端 未结 17 1284
[愿得一人]
[愿得一人] 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:07

    I had the same problem, I resolved it as follows:

    In your dependecies if you have added

    implementation 'androidx.constraintlayout:constraintlayout:1.x.x' that is correct

    but in your xml layout file you have to use the widget as

    androidx.constraintlayout.widget.ConstraintLayout

提交回复
热议问题