Be careful not to reference com.android.support.constraint:constraint-layout
and androidx.constraintlayout:constraintlayout
at the same time. Settle on one (preferably androidx), remove the other, and make sure the package names are consistent in your layout files too. That fixed the issue for me.