坑爹的ANDRODI STUDIO升级2.3之后导致databinding报错
2017-03-14 19:07
190 查看
升级studio之后遇到
Using incompatible plugins for the annotation processing: android-apt. This may result in an unexpected behavior.
最后google到了下面这段话
Your app level gradle dependencies should include (as per butterknife website instructions):
You can remove the line :
Annotation Processing became available in Android Gradle plugin (2.2 and later) so there is now no need to use the above plugin anymore if using this version of gradle or greater.
If you'd like to know how to turn annotation processing off and on and AS the setting is in :
Settings > Build, Execution, Deployment > Compiler > Annotation Processors
这样该国之后一切ok。只想说,有时候黄色的警告!我们确实不能忽略啊
android
error: package *.*.databinding 不存在这样的错误,坑爹的找了两天。
一直以为是哪个布局文件写法有问题,恨不得七八十个页面一个一个的排查。一直忽略了这个黄色警告
Using incompatible plugins for the annotation processing: android-apt. This may result in an unexpected behavior.最后google到了下面这段话
Your app level gradle dependencies should include (as per butterknife website instructions):
compile 'com.jakewharton:butterknife:8.5.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
You can remove the line :
apply plugin: 'com.neenbedankt.android-apt'
Annotation Processing became available in Android Gradle plugin (2.2 and later) so there is now no need to use the above plugin anymore if using this version of gradle or greater.
If you'd like to know how to turn annotation processing off and on and AS the setting is in :
Settings > Build, Execution, Deployment > Compiler > Annotation Processors
这样该国之后一切ok。只想说,有时候黄色的警告!我们确实不能忽略啊
相关文章推荐
- androidStudio升级到2.3之后新建Activity布局变成了约束(ConstraintLayout)布局
- 一个小菜鸟的Android Studio2.3升级之旅,附赠升级之后Gradle的配置方法
- Android Studio从2.3升级到3.0之后apt报错
- 升级ubuntu14.04之后导致编译linux kernel出错的解决
- 升级xcode8之后,输入代码xcode闪退,插件导致闪退,KSImageName导致的
- Android_Android Studio2.3升级之旅,附赠升级之后Gradle的配置方法
- androidStudio升级到2.3之后新建Activity布局变成了约束(ConstraintLayout)布局
- Android studio升级2.3之后gradle报错的解决方法
- Android升级到2.3之后遇到的问题
- 升级Xcode之后VVDocumenter-Xcode不能用的解决办法-一般为意外点击了Skip Bundle导致
- Andorid studio 升级到2.3之后"Launch Standalone SDK Manager"没有了
- Ubuntu10.04升级到11之后导致 VM 无法正常启动的问题
- androidStudio升级到2.3之后打包安装不了
- 解决win7 vs2008没有升级按钮导致无法升级
- 针对Xcode升级到8之后,注释失效的解决方法
- 重装系统,升级Xcode7之后,发现安装不了CocoaPods
- Struts从2.1升级到2.3版本过程
- MVC4升级MVC5导致原项目出错的解决方法
- Android学习杂记(四):Android应用遭遇错误导致崩溃之后自动重启
- PHP升级到4.3版本之后改变了调用存储过程的一个特性