Android project with Java and Kotlin files, kapt or annotationProcessor?

First of all, the Kotlin Annotation processing tool (kapt) uses the Java compiler to run annotation processors. If your project contains any Java classes, kapt takes care of them by design. Kotlinlang recommends using kapt incase you used annotationProcessor from the Android Support before.

JetBrains has a nice article about how kapt works in more detail, its from 2015 but UP-TO-DATE.

Leave a Comment

tech