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


使用apt来导入butterknife和dagger的时候,会报警告   (在引用databinding的时候会报,其他不会)
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了

原文:https://stackoverflow.com/questions/42632662/android-studio-warning-using-incompatible-plugins-for-the-annotation-processing
最下面的回答就是这三步。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM