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-6.0.0.jar (com.jakewharton:butterknife:6.0.0)
  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 } }
    }
    ...
}

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android软件开发实例:用客户端写博客
  2. (一)基于android平台的智能家居控制系统之
  3. 一个 android和js 数据交互的问题
  4. [置顶] vs2008 编译adb 支持4.2 android
  5. Android(安卓)如何动态的控制Toast的显示
  6. Android——屏幕适配
  7. 【FastDev4Android框架开发】RecyclerVie
  8. 一定要看的 Android(安卓)资源目录的相关
  9. Android(安卓)系统属性
  10. 使用VS2015调试Android的C++动态链接库