android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcess...

意思是Android APT插件与Android Gealle插件不兼容. 

1,首先把项目下的build.gradle中的classpath ‘com.neenbedankt.gradle.plugins:android-apt:1.8’删掉

2,把module下面的build.gradle最上面引入的插件删掉,不管是下面这两个中的哪一个,都删掉

    apply plugin: ‘com.neenbedankt.android-apt’

    apply plugin: ‘android-apt

3,在module下的build.gradle中的依赖修改为:(只需要这两个)

// butterknife 组件注入

implementation'com.jakewharton:butterknife:8.6.0'

annotationProcessor'com.jakewharton:butterknife-compiler:8.6.0'

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容