Error updating Android Studio, Kotlin and Gradle

Hi everyone

Everything in my gradle file was woring fine but when I some updates, my Gradle project crash. This is what I did:

  1. Update Android Studio (Iguana)
  2. Update Gradle (8.3.0)
  3. Update Kotlin (1.9.22)

When I did this, Gradle crash and trows an error with the kapt. So, I decide to migrate all to ksp. But before to do that, I change gradle files from Groovy to Kotlin syntax

Finally, I got this error when invalidated caches:

Caused by: org.gradle.internal.event.ListenerNotificationException: Failed to notify project evaluation listener.

without invalided caches, got this:

Unable to load class ‘org.jetbrains.kotlin.gradle.plugin.mpp.pm20.KotlinCompilationData’
org.jetbrains.kotlin.gradle.plugin.mpp.pm20.KotlinCompilationData

How can I resolve this? Thank your for the atention and best wishes and regards.

Please share the full error and not just one line. At least the full --stacktrace, better a build --scan if possible.