I just made a migration to androidx through Android Studio menu option Refactor -> Refactor to AndroidX
I\'m getting the following
I copied and pasted an existing ConstraintLayout tag from the xml, which was causing the issue for me. Simply deleting, and re-adding the ConstraintLayout tags in AndroidStudio from scratch fixed the issue for me.