android / codelab-mlkit-android

Other
179 stars 101 forks source link

</androidx.constraintlayout.widget.ConstraintLayout> error #52

Open WilliamBoni opened 3 years ago

WilliamBoni commented 3 years ago

after i used this code i recieved an error, can someone fix this? i don't know what to fix. thanks...

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".pdfview">

    <com.github.barteksc.pdfviewer.PDFView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/pdfviewer"
        android:background="@color/white"

</androidx.constraintlayout.widget.ConstraintLayout>

the gradle i used :

implementation 'androidx.constraintlayout:constraintlayout:2.0.4'