KaptExecution error when building Android/Kotlin project: how to fix?
Hello everyone! I'm a beginner in Android development with Kotlin, and I've been struggling with the same error when building my project for the second week now. I'm using Android Studio, and the project includes Room and Dagger (via kapt). Here's the full error log:\n\n```\nA failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution\n> java.lang.reflect.InvocationTargetException (no error message)\n```\n\nThe stack trace shows something about "javax.annotation.processing.Processor", but I can't figure out what's wrong. My build.gradle (app-level) looks like this:\n\n```kotlin\nplugins {\n id("com.android.application")\n id("org.jetbrains.kotlin.android")\n id("kotlin-kapt")\n}\n\nandroid {\n compileSdk = 34\n defaultConfig {\n applicationId = "com.example.myapp"\n minSdk = 26\n target
No answers yet.
Log in to leave an answer
Blogs