Kotlin compilation error in Gradle: what to do with `compileDebugKotlin`?
Hi everyone! I'm a beginner in Kotlin and Android development. I'm migrating my project from Java to Kotlin, and I've encountered an error I can't understand. When building the project (./gradlew assembleDebug), I get:\n\n```\nError:Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more details\n```\n\nIn the Gradle logs, it just says "Compilation error" without specifics. I've tried cleaning the project (Clean Project), rebuilding, deleting .gradle and .idea folders — nothing helps.\n\nHere's my `build.gradle.kts` (module app level):\n\n```kotlin\nplugins {\n id("com.android.application")\n id("org.jetbrains.kotlin.android") version "1.8.0"\n}\n\nandroid {\n namespace = "com.example.myapp"\n compileSdk = 34\n\n defaultConfig {\n applicationId = "com.example.myapp"\n
No answers yet.
Log in to leave an answer
Blogs
Rust in 2025: A Complete Beginner's Guide from Scratch