问题描述
从2.2升级到2.3后,我看到这个警告
当我尝试编译项目时,我看到了这个编译错误
如何解决此问题而不降级到以前的gradle版本?
是否有更新的android-apt可以解决这个问题?
android-apt plugin 已被弃用。
请点击此处查看:
您可以删除 来自迁移指南的重要组成部分 :
依赖关系{
编译'com.google.dagger:dagger:2.0'
annotationProcessor'com.google.dagger:dagger编译器:2.0'
}
在Android Gradle插件中还有一个明确的检查为此,您正在看到的是:
未来的Android Gradle插件版本与 android-apt 作品,这是检查的原因。
After upgrading from 2.2 to 2.3 I see this warning
and when I try to compile the project I see this compilation error
How can i solve this issue without downgrading to a previous gradle version?Is there any update of android-apt that can solve this issue?
The android-apt plugin has been deprecated.
Check here for the migration guide:
You can remove android-apt by following the migration guide to get the equivalent functionalities.
The important parts from the migration guide:
dependencies { compile 'com.google.dagger:dagger:2.0' annotationProcessor 'com.google.dagger:dagger-compiler:2.0' }
Also in the Android Gradle plugin there is an explicit check for this, which is what you are seeing:
Future Android Gradle plugin versions will not be compatible with the way android-apt works, which is the reason for that check.
这篇关于升级到Android Studio 2.3后,针对android-apt的插件不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!