解决AS3.0之 Error:android-apt plugin is incompatible with the Android Gradle plugin

it2022-05-05  175

这个是3.0以上会出现的错误,先看一下这个是什么错误: 很明显需要我们修改配置。

第一步:注释project gradle里的apt配置

第二步:注释app gradle 里的apt配置

第三步:将依赖apt改成annotationProcessor

Android Gradle 2.2插件集成了android-apt里的所有功能,从Android Gradle 2.3插件开始阻止android-apt的使用。同时android-apt官方停止维护,建议迁移到annotationProcessor。具体查看apt迁移通知From apt to annotationProcessor。


最新回复(0)