https://kotlinlang.org logo
r

rajatarora2812

05/30/2019, 3:47 AM
Hi. Can someone please answer this Why kapt plugin is required for annotation processor in koltin?
n

Nate

05/30/2019, 3:58 AM
So I’m super unsure of this, but I suspect that
annotationProcessor
won’t be looking for annotations in Kotlin files, whereas
kapt
will.
g

gildor

05/30/2019, 5:35 AM
you need Kapt to let Annotation Processors written for Java to get access to Kotlin classes during annotation processing
if you don’t generate any code from Kotlin files you don’t need kapt