环境

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
}
}

最新文章

  1. hdu4044 GeoDefense
  2. MPI之求和
  3. 带条件Count
  4. 2_STL容器
  5. Mysql5.5命令行修改密码
  6. C++中不同数据类型的互相转换
  7. CodeForces 300C 最短路
  8. Asp.net MVC23 使用Areas功能的常见错误
  9. Eclipse版本及其代号
  10. Makefile学习(1) arm-linux-ld arm-linux-objcopy arm-linux-objdump
  11. TestDirector安装配置
  12. 适配ios7
  13. sql2008R2数据库备份--双机备份
  14. 基于Redis缓存的Session共享(附源码)
  15. Python课程学习总结
  16. [Swift]枚举类型:UIBarButtonItem的24种样式
  17. Hibernate里面如何使用DetachedCriteriaCriteria 实现多条件分页查询
  18. 教你如何自学UI设计
  19. Codeforces 545D - Queue
  20. 【面向对象】用大白话扯扯那"神奇"的面向对象编程思维(二)

热门文章

  1. php firebase/php-jwt token验证
  2. margin 负值问题
  3. STM32 系统架构
  4. 89、tensorflow使用GPU并行计算
  5. spring boot starter开发
  6. Backdoor CTF 2013 :电子取证250
  7. JasperReports教程
  8. os.fork()----linux
  9. Spring 使用@Async出现循环依赖Bean报错的解决方案
  10. python获取Linux发行版名称