Android,neenbedankt A.P和Support Annotation有什么区别?
最近我用googleAndroid,neenbedankt A.P和Support Annotation有什么区别?,android,annotation-processing,Android,Annotation Processing,最近我用googleSupport annotation库替换了neenbedankt注释处理库,并用annotationProcessor更改了build.gradle中的所有apt方法,一切都很好,我的问题是它们之间有什么区别,我们应该在什么时候使用它们?没有区别annotationProcessor是gradle插件的新功能 更多信息来自android apt 本文得出的主要结论是,annotationProcessor与android-apt的功能相同,这就是为什么不再维护android
Support annotation
库替换了neenbedankt
注释处理库,并用annotationProcessor
更改了build.gradle
中的所有apt
方法,一切都很好,我的问题是它们之间有什么区别,我们应该在什么时候使用它们?没有区别annotationProcessor
是gradle插件的新功能
更多信息来自android apt
本文得出的主要结论是,
annotationProcessor
与android-apt
的功能相同,这就是为什么不再维护android-apt
的原因。建议您使用annotationProcessor
,因此如果两者相同,为什么neen
有插件,而支持的没有插件?android apt
是gradle android插件的插件,这就是为什么需要将其添加到类路径中的原因annotationProcessor
现在是gradle android插件的一部分,它不需要向类路径添加任何内容。