使用androidstudio3.0时butterknife报错解决方法
来源:互联网 发布:kenrobot 软件下载 编辑:程序博客网 时间:2024/06/06 05:13
今天升级了androidstudio3.0,因为以前项目用了注解butterknife:7.0.1,所以出现了如下的报错:
Error:Execution failed for task ':App:javaPreCompileDebug'.
> Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration.- butterknife-7.0.1.jar (com.jakewharton:com.jakewharton:butterknife:7.0.1))
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future.
See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.
解决方法如下:
在app的build中android { defaultConfig { //添加如下配置就OK了 javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } } }}
阅读全文
2 0
- 使用androidstudio3.0时butterknife报错解决方法
- androidstudio3.0使用butterknife报错解决
- androidstudio3.0使用butterknife报错解决
- androidstudio3.0使用butterknife报错解决
- androidstudio3.0使用butterknife报错解决
- AndroidStudio3.0中butterknife报错- butterknife-7.0.1.jar (com.jakewharton:butterknife:7.0.1) Alternat
- AndroidStudio3.0报错原因
- androidstudio3.0使用butterknife7.0.1报错解决
- Eclipse 使用ButterKnife 报错
- ButterKnife使用报错问题
- Androidstudio3.0 关于Gradle报错的问题
- studio3.0Butterknife使用及报错解决
- android studio 3.0 butterknife 报错 的 解决方法
- 最新版AndroidStudio3.0 Canary 8的时候报错,Annotation processors must be explicitly declared now
- AndroidStudio3.0 注解报错Annotation processors must be explicitly declared now. The following dependenci
- AndroidStudio3.0 Canary 8注解报错Annotation processors must be explicitly declared now.
- AndroidStudio3.0
- 使用butterknife报空指针
- 了解Java线程的start方法如何回调run方法
- 20171114memo
- Android利用ListView实现多种Item的复杂布局
- java基础---初始化块
- Playfair密码
- 使用androidstudio3.0时butterknife报错解决方法
- excel的单元格合并
- BFS\DFS\A*\Dijkstra\Prim算法等的简介
- haproxy+keepalived实现高可用负载均衡
- 图形数据库Neo4J简介
- python串口编程整理
- linux 查找命令find和grep使用
- zynq 轻量级以太网控制器LWIP传输速度优化
- mysql字符串、日期函数