会报nnotation 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.这样的错

解决办法:build.gradle 中的defaultConfig添加对应策略

defaultConfig {    ……           testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"        javaCompileOptions {            annotationProcessorOptions {                includeCompileClasspath = true            }        }    }

更多相关文章

  1. No.11 使用firewall配置的防火墙策略的生效模式
  2. contentProvider不是线程安全的
  3. Android(安卓)8.0 通知栏的适配
  4. 5张图片解决android studio报错:Failed to resolve: com.android.
  5. 使用ActionBar,调整Theme时遇到You need to use a Theme.AppCompa
  6. Android(安卓)远程图片获取和本地缓存策略
  7. 解决 :android studio 提交代码到git/github失败 Could not read
  8. Android热修复方案的兼容策略CLASS_ISPREVERIFIED问题
  9. Android硬件加速的一些问题和错误

随机推荐

  1. Linux安装SVN服务器
  2. linux文件目录权限和系统基础优化命令
  3. 如何卸载内核代码中的文件系统
  4. 我的电脑认为有符号整数比-1小?
  5. Linux服务器权限管理实践——添加用户只
  6. 《深入理解Linux网络技术内幕》阅读笔记(
  7. Linux Tcp/ip UDP基本概念(6.8)
  8. Codeigniter2.25部署Linux(php5.6)
  9. 在Linux上确定陈旧的Samba挂载的最快方法
  10. Linux无法连接网络解决方案