版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011626964/article/details/77869235
android studio 升级到2.3以后提示:
Warning:Using incompatible plugins for the annotation processing: android-apt. This may result in an unexpected behavior.
原因:
android studio 2.3以后不支持 apt
解决方式:
把项目中build.gradle中的
apply plugin: ‘com.neenbedankt.android-apt’ 删掉
dependencies下所有apt的引用
dependencies {
apt ‘com.jakewharton:butterknife-compiler:8.8.1’
}
全部换成
dependencies {
annotationProcessor ‘com.jakewharton:butterknife-compiler:8.8.1’
}