问题
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)?
回答1:
Yes, it is recommended to do so. The documentation stated:
If you previously used the Android support for annotation processors, replace usages of the
annotationProcessorconfiguration withkapt. If your project contains Java classes,kaptwill also take care of them.
Read more on Using kapt
来源:https://stackoverflow.com/questions/51066583/should-i-change-all-annotationprocessor-to-kapt-in-kotlin-project