Should I change all annotationProcessor to kapt in Kotlin project

浪子不回头ぞ 提交于 2020-01-05 06:36:07

问题


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 annotationProcessor configuration with kapt. If your project contains Java classes, kapt will 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!