Jack Guo
Jack Guo

Reputation: 4694

Should I change all annotationProcessor to kapt in Kotlin project

I noticed that I have to use kapt instead of annotationProcessor to make Dagger 2 work properly in my Kotlin project. Do I have to do the same to all the libraries (specifically Glide and Room)?

Upvotes: 2

Views: 2951

Answers (1)

Yosi Pramajaya
Yosi Pramajaya

Reputation: 4085

Yes, it is recommended to do so. The documentation stated:

If you previously used the Android support for annotation processors, replace usages of the annotationProcessor configuration with kapt. If your project contains Java classes, kapt will also take care of them.

Read more on Using kapt

Upvotes: 9

Related Questions