Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProc

我更新 Android Studio2.3.3到3.0版本后,同时也更新了gradle到4.1后,就出现了这个问题。直接上解决办法:

一、注释掉module的buid.gradle下

// 应用插件
//apply plugin: 'com.neenbedankt.android-apt'

二、修改dependencies模块(注释掉了一句,添加了一句声明进程的方式):

compile 'com.google.dagger:dagger:2.12'
//apt 'com.google.dagger:dagger-compiler:2.12'
annotationProcessor 'com.google.dagger:dagger-compiler:2.12'

三、无关紧要的一步,我就是看着不爽而已,在项目的build.gradle下面注释掉一句话



好了,问题解决!本来想上传个demo的,想想没必要。

















猜你喜欢

转载自blog.csdn.net/sxk874890728/article/details/78367726