Android Studio3.0 Error:Execution failed for task ':app:javaPreCompileDebug' 错误

报错信息


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 (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.




解决方法

 //在app.gradle添加如下配置就好了

 javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }

解决办法
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,448评论 0 10
  • 太阳照常升起,一缕阳光拂过艾小曼微笑的脸、嘴角。 “小枫,起床了吗?”艾小曼发了一条简讯。 “起了,你吃早饭没?”...
    lzbvae阅读 557评论 0 1
  • 每到周一升旗仪式,我都会到操场北段看看。 每次去,都会有些许的欣喜:它们又长大了。 可是,...
    打灯笼的小星星阅读 302评论 0 2
  • 生活很美好 和朋友们逛逛街吃吃饭 回家躺被窝里刷微博淘宝 和家人在一起满满安全感 我很喜欢现在这样的生活 很好很好
    CY陈七阅读 220评论 0 0
  • 有很多姑娘,她们虽然自称是护肤达人,一大堆的瓶瓶罐罐也不少,可是对于有些护肤知识还是存在误区,比如,大部分小仙女都...
    言叶之婷阅读 282评论 0 0