Android, neenbedankt A.P 和 Support Annotation 有什么区别?
Android, What is the difference between neenbedankt A.P and Support Annotation?
最近我用googleSupport-Annotation
库替换了neenbedankt
注解处理库,并且把build.gradle
中的所有apt
方法都改成了annotationProcessor
一切都很好,我的问题是它们之间有什么区别,我们应该什么时候使用它们?
没有区别。 annotationProcessor
是 gradle 插件的新功能。
来自 android-apt
here
的创建者的更多信息
本文的主要结论是 annotationProcessor
与 android-apt
的作用相同,这就是 android-apt
不再维护的原因。建议您使用 annotationProcessor
最近我用googleSupport-Annotation
库替换了neenbedankt
注解处理库,并且把build.gradle
中的所有apt
方法都改成了annotationProcessor
一切都很好,我的问题是它们之间有什么区别,我们应该什么时候使用它们?
没有区别。 annotationProcessor
是 gradle 插件的新功能。
来自 android-apt
here
本文的主要结论是 annotationProcessor
与 android-apt
的作用相同,这就是 android-apt
不再维护的原因。建议您使用 annotationProcessor