AndroidFine Error:Annotation processors must be explicitly declared now.
2024-10-07 19:07:35
环境
Android Studio 3.0
Gradle 3.0.0
gradle 4.1
Error
Error:Execution failed for task ':app:javaPreCompileAnzhiDebug'.
> 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: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.
解决
javaCompileOptions {
// 显式声明支持注解
annotationProcessorOptions {
includeCompileClasspath false
}
}
最新文章
- hdu4044 GeoDefense
- MPI之求和
- 带条件Count
- 2_STL容器
- Mysql5.5命令行修改密码
- C++中不同数据类型的互相转换
- CodeForces 300C 最短路
- Asp.net MVC23 使用Areas功能的常见错误
- Eclipse版本及其代号
- Makefile学习(1) arm-linux-ld arm-linux-objcopy arm-linux-objdump
- TestDirector安装配置
- 适配ios7
- sql2008R2数据库备份--双机备份
- 基于Redis缓存的Session共享(附源码)
- Python课程学习总结
- [Swift]枚举类型:UIBarButtonItem的24种样式
- Hibernate里面如何使用DetachedCriteriaCriteria 实现多条件分页查询
- 教你如何自学UI设计
- Codeforces 545D - Queue
- 【面向对象】用大白话扯扯那";神奇";的面向对象编程思维(二)