使用apt导入时报警告:Warning:Using incompatible plugins for the annotation processing: android-apt. This may

来源:互联网 发布:万网域名后台 编辑:程序博客网 时间:2024/06/07 05:01
使用apt来导入butterknife和dagger的时候,会报警告  Warning:Using incompatible plugins for the annotation processing: android-apt. This may result in an unexpected behavior.解决方案:
1、apt 'com.jakewharton:butterknife-compiler:8.2.0' 改为=》annotationProcessor 'com.jakewharton:butterknife-compiler:8.2.0'
2、删除:project build.gradle 中的
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'   添加apt的操作 3、删除  app  build.gradle 中的:
apply plugin: 'com.neenbedankt.android-apt'以上三步完成后同步就ok了
阅读全文
0 0