Android-Android apt插件与Android Gradle插件不兼容。 自从Gradle更新以来,我正在使这个项目达到标准。这是一个团队项目,它使用的是android apt插件。我已经进行了必要的语法更改(编译-->实现&apt-->注释处理器),但编译器仍然告诉我存在差异: android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor' configuration instead.

Android-Android apt插件与Android Gradle插件不兼容。 自从Gradle更新以来,我正在使这个项目达到标准。这是一个团队项目,它使用的是android apt插件。我已经进行了必要的语法更改(编译-->实现&apt-->注释处理器),但编译器仍然告诉我存在差异: android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor' configuration instead.,android,gradle,android-gradle-plugin,Android,Gradle,Android Gradle Plugin,有人有什么想法吗 谢谢你的见解 -T 尝试删除- classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4' 及 Android Gradle插件(2.2及更高版本)提供了注释处理功能,因此现在没有必要/理由提供额外的注释处理功能。感谢您在此提供的见解。我是否也应该删除annotationProcessor依赖项,还是应该保留它们?首先,请尝试保留它们。因为我的理解是,例如“annotationProcessor”org.android

有人有什么想法吗

谢谢你的见解

-T

尝试删除-

classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'


Android Gradle插件(2.2及更高版本)提供了注释处理功能,因此现在没有必要/理由提供额外的注释处理功能。

感谢您在此提供的见解。我是否也应该删除annotationProcessor依赖项,还是应该保留它们?首先,请尝试保留它们。因为我的理解是,例如“annotationProcessor”org.androidannotations:rest-spring:$AAVersion“”,这里的annotationProcessor默认情况下应该回到gradle的annotationProcessor.Understand。我现在还收到一个错误,
在同步时找不到org.gradle.api.project类型的应用程序的参数[build\XXXXX]的apt()方法。
。这是否与存储库下方文件的
apt
部分有关?你对这可能是什么有什么见解吗?再次感谢。相信你。不知道这对你的项目有多重要,但值得一试。
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
apply plugin: 'android-apt'