'Regarding new version of andriodx in andriod studio

I am using new version of andriox studio but i am getting some errors while i am running the project, error occurs in ContenetMainbuilding.java file Note: i am using Firebase and fragment as well ** import androidx.constraintlayout.ConstraintLayout; ^ symbol: class ConstraintLayout location: package androidx.constraintlayout enter image description here**



Solution 1:[1]

You shoule use

androidx.constraintlayout.widget.ConstraintLayout

instead of androidx.constraintlayout.ConstraintLayout

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 VanSuTuyDuyen