Android Studio2.3版本,集成dagger,butterknife,使用以前的依賴方式android-apt,如下
會(huì)報(bào)警告
Warning:Using incompatible plugins for the annotation processing: android-apt.This may result in an unexpected behavior.
解決方法:直接刪除classpath'com.neenbedankt.gradle.plugins:android-apt:1.8'和applyplugin:'android-apt',然后將apt替換為annotationProcessor
修改前
修改后
重新同步build,警告消除.
建議直接Github上依賴最新版本.
android-apt報(bào)警告是該作者在官網(wǎng)發(fā)表聲明證實(shí)了后續(xù)將不會(huì)繼續(xù)維護(hù)android-apt,
Google官方?插件提供了名為annotationProcessor的功能來(lái)完全代替android-apt