studio3.0Butterknife使用及报错解决
来源:互联网 发布:全世界讨厌中国人知乎 编辑:程序博客网 时间:2024/05/17 01:02
第一步添加依赖
implementation 'com.jakewharton:butterknife:8.8.1'implementation 'com.jakewharton:butterknife-compiler:8.8.1'
使用就是这样
接下来是解决报错
Annotation processors must be explicitly declared now.The following dependenciesonthe compile classpath are found tocontain annotation processor.Please add themtothe annotationProcessor configuration. - butterknife-7.0.1.jar Alternatively,set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath =truetocontinuewith previous behavior. Notethat this option is deprecated and will be removed inthe future.
解决方法
在module的build.gradle中添加如下代码
需要添加在Android目录下的defaultconfig中添加
javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true }}
阅读全文
0 0
- studio3.0Butterknife使用及报错解决
- android studio3.0使用报错解决
- androidstudio3.0使用butterknife报错解决
- androidstudio3.0使用butterknife报错解决
- androidstudio3.0使用butterknife报错解决
- androidstudio3.0使用butterknife报错解决
- ButterKnife----- Android Studio3.0
- butterknife 接入、使用和Android studio3.0适配问题
- 解决升级AS3.0+ Gradle4.0+ 使用ButterKnife apt报错问题
- studio3.0后的butterknife配置
- Eclipse 使用ButterKnife 报错
- ButterKnife使用报错问题
- 关于Android studio3.0后butterknife无法使用决解fangf
- 使用androidstudio3.0时butterknife报错解决方法
- 关于Android studio3.0的坑之butterknife 8.4.0
- Android Studio3.0后依赖ButterKnife不成功的解决方法
- 解决butterknife添加依赖的时候报错
- AndroidStudio3.0中butterknife报错- butterknife-7.0.1.jar (com.jakewharton:butterknife:7.0.1) Alternat
- 程序员加薪的技巧!
- Python装饰器、metaclass、abc模块学习笔记
- linux 查看系统信息相关命令
- .gradle目录组织
- Cache注解详解
- studio3.0Butterknife使用及报错解决
- Java中的transient关键字
- servlet 和 filter执行顺序
- 深入理解Java垃圾回收机制
- 生成器方法Symbol.iterator
- 远程连接MYSQL提示Host is not allowed to connect to this MySQL server
- 关于拷贝文件后的权限问题
- selenium的下载地址
- cocos creator 系统事件监听方法