Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProce
引入butterknife时,报错:Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProce
按引入要求分别在model的build.gradle下面引入:
解决办法:
1.注释掉module的buid.gradle下
apply plugin: 'android-apt'
2.修改dependencies模块
把apt 'com.jakewharton:butterknife-compiler:8.4.0'改为:annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
3.同步ok