Top "Kapt" questions

Use this tag for questions about the kapt (Kotlin Annotation Processing) compiler plugin for annotation processing with Kotlin.

kapt Build Fails With Dagger Android Processor

I am attempting to include the Dagger Android Processor (documented here) in my project with the Kotlin Annotation Processing Tool (…

android kotlin dagger-2 kapt
Room "Not sure how to convert a Cursor to this method's return type": which method?

Error:Not sure how to convert a Cursor to this method's return type Error:Execution failed for task ':app:…

android dao android-room kapt android-architecture-components
Android Room Persistence library and Kotlin

I am trying to write a simple app using Kotlin and Room Persistence Library. I followed the tutorial in the …

database kotlin kapt android-room
Gradle DSL method not found: 'kapt()'

Gradle DSL method not found: 'kapt()' Possible causes: The project 'jetpacklearn' may be using a version of the Android …

android gradle kapt
After adding Kapt plugin - A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution

First of all, I'm pretty much aware that a lot of questions on this error had been posted already here, …

android kotlin mvvm realm kapt
android-jetifier: "Could not resolve all artifacts"; "Failed to transform artifact" on new project

I have a relatively new project that I'm trying to build. Gradle syncs fine, but whenever I try to build, …

android gradle android-gradle-plugin kapt android-jetifier
Collection contains no element matching the predicate

I'm using the Room library, and I'm getting the following error message when I try to build the app: e: […

android android-room kapt
Could not find method kapt() for glide

apply plugin: 'com.google.gms.google-services' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' classpath 'com.android.tools.build:…

android gradle android-glide kapt
Databinding annotation processor kapt warning

In my app module's build.gradle, I have added dependencies { kapt('com.android.databinding:compiler:3.1.2') ... } but I'm still receiving …

android kotlin annotation-processing kapt
Kapt does not work with AutoValue in Android Studio 3.0

Gradle dependencies: compile 'com.google.dagger:dagger:2.9' annotationProcessor 'com.google.dagger:dagger-compiler:2.9' kapt 'com.google.dagger:dagger-compiler:2.9' …

android-studio kotlin auto-value kapt