Error inflating class androidx.constraintlayout.widget.ConstraintLayout in huawei devie code example
Example: Error inflating class android.support.constraint.ConstraintLayout
For those who are switching from android support to androidx,
remember to change
android.support.constraint.ConstraintLayout
to
androidx.constraintlayout.widget.ConstraintLayout