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

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

    Add androidx.constraintlayout.widget.ConstraintLayout to the dependencies:

    dependencies  {
        // https://mvnrepository.com/artifact/androidx.constraintlayout/constraintlayout
        implementation "androidx.constraintlayout:constraintlayout:1.1.3"
    }
    

    It's available on mavenCentral().

提交回复
热议问题