There is already a constraint layout in the Grades dependency part.
But in the first picture, you see Android... Constraint Layout on a gray background. Go to the text editor part of the layout xml and
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>
Check if it went in safely regarding androidx.
I think you probably used the widget from the previous version of the support layout.
© 2024 OneMinuteCode. All rights reserved.