《android日常bug系列》as3.0报错,Annotation processors must be explicitly declared now
来源:互联网 发布:算法心得 epub 编辑:程序博客网 时间:2024/06/06 19:27
运行项目的时候,报错信息显示是因为butterknife的注解导致的
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 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.
解决办法:
在module的build.gradle添加一行配置即可
android { ... defaultConfig { ... //添加如下配置就OK了 javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } } } ...}
阅读全文
0 0
- 《android日常bug系列》as3.0报错,Annotation processors must be explicitly declared now
- 最新版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.
- Annotation processors must be explicitly declared now
- Annotation processors must be explicitly declared now
- Annotation processors must be explicitly declared now...
- AndroidStudio3.0中报错Annotation processors must be explicitly declared now.
- Mr.Smile填坑记——AndroidStudio3.0 Canary 8注解报错Annotation processors must be explicitly declared now.
- 解决: Annotation processors must be explicitly declared now
- AndroidStudio 3.0 canary 8 Annotation processors must be explicitly declared now.
- Feign报错:Attribute 'value' in annotation,must be declared as an @AliasFor [serviceId], not [name]
- Android Studio报Element XXXX must be declared的解决方法
- 《android日常bug系列》as升级3.0后报错,All flavors must now belong to a named flavor dimension.
- bug解决:Element xxx must be declared
- Android Studio selector 报 Element selector must be declared 的问题
- (转)Android Studio selector 报 Element selector must be declared 的问题
- Oracle数据库导出报componet'SET_NO_OUTLINES'must be declared的错
- linux grep 匹配查找
- 题目:MySql数据查询题目(学生和课程成绩)
- 计算机网络-7
- python 数据可视化(二)
- 基于Spring Boot和Spring Cloud实现微服务架构学习
- 《android日常bug系列》as3.0报错,Annotation processors must be explicitly declared now
- [java]两次调用encodeURI来解决乱码问题
- 8.3.1 MySQL是如何使用索引的
- Effective C++ 27. Minimize casting
- ThreadPoolExecutor.Worker内部类分析
- JVM参数列表--jvm调优
- CSDN下载积分攻略
- TypeError: exchange_declare() got an unexpected keyword argument 'type'的解决办法
- 转载一篇spring资料