Avatar ·

Kotlin-Kompilierungsfehler in Gradle: Was tun mit `compileDebugKotlin`?

Hallo zusammen! Ich bin neu in Kotlin und Android-Entwicklung. Ich migriere mein Projekt von Java zu Kotlin und bin auf einen Fehler gestoßen, den ich nicht verstehe. Beim Build des Projekts (./gradlew assembleDebug) erhalte ich: ``` Error:Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more details ``` In den Gradle-Logs steht nur "Compilation error" ohne Details. Ich habe versucht, das Projekt zu bereinigen (Clean Project), neu zu bauen, die Ordner .gradle und .idea zu löschen – nichts hilft. Hier ist mein `build.gradle.kts` (auf Modulebene app): ```kotlin plugins { id("com.android.application") id("org.jetbrains.kotlin.android") version "1.8.0" } android { namespace = "com.example.myapp" compileSdk = 34 defaultConfig { applicationId = "com.example.myapp" ```