Home > Net >  I have problem when i start android studio and rebuild project not work good
I have problem when i start android studio and rebuild project not work good

Time:04-19

After Run Android Studio And Build Gradel I Have This Error And I Can't Fix This. I'm Checked jdk instal And Sdk Instaletion But I Can't Find Way To Fix Error.

Cannot resolve class androidx.constraintlayout.widget.ConstraintLayout
ERROR:C:\Users\Sina\.gradle\caches\transforms-3\e0be1e4ebe8d827889716686ce55c5f3\transformed\material-1.4.0\res\layout\material_clock_display.xml:18: AAPT: error: attribute layout_constraintTop_toTopOf (aka com.example.sinasaadi:layout_constraintTop_toTopOf) not found.
    ERROR:C:\Users\Sina\.gradle\caches\transforms-3\e0be1e4ebe8d827889716686ce55c5f3\transformed\material-1.4.0\res\layout\material_clock_period_toggle.xml:18: AAPT: error: attribute layout_constraintStart_toEndOf (aka com.example.sinasaadi:layout_constraintStart_toEndOf) not found.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
ERROR:C:\Users\Sina\.gradle\caches\transforms-3\e0be1e4ebe8d827889716686ce55c5f3\transformed\material-1.4.0\res\layout\material_clock_display.xml:18: AAPT: error: attribute layout_constraintTop_toTopOf (aka com.example.sinasaadi:layout_constraintTop_toTopOf) not found.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

enter image description here

CodePudding user response:

In android studio go to file -> invalidate Caches. And try restarting studio.

  • Related