build.gradle (Module: app)
apply plugin: \'com.android.application\'
android {
compileSdkVersion \'android-P\'
buildToolsVersion \'27.0
The errors indicate that you're using the ConstraintLayout in your layout xml files.
Keep only one version of the library and make sure, that you are using that version's ConstraintLayout in your xmls.
So, if you keep androidx, check your layout files and make sure, you are using androidx.constraintlayout.ConstraintLayout there, and not android.support.constraint.ConstraintLayout.