androidstudio3.0使用butterknife报错解决的解决方法

androidstudio3.0使用butterknife报错解决的解决方法,第1张

概述问题在添加butterKnife依赖的时候出现如下错误:Annotationprocessorsmustbeexplicitlydeclarednow. Thefollowingdependenciesonthecompileclasspatharefoundtocontainannotationprocessor. Pleaseaddth

问题

在添加butterKnife依赖的时候出现如下错误:

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

修改

androID {  ...  defaultConfig {    ...    javaCompileOptions {      annotationProcessorOptions {        includeCompileClasspath = true       }    }  }}

添加上面配置就好…………….

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程小技巧。

总结

以上是内存溢出为你收集整理的androidstudio3.0使用butterknife报错解决的解决方法全部内容,希望文章能够帮你解决androidstudio3.0使用butterknife报错解决的解决方法所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1143153.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-31
下一篇 2022-05-31

发表评论

登录后才能评论

评论列表(0条)

保存