androidstudio3.0使用butterknife报错解决的解决方法
问题
在添加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
}
}
}
}
添加上面配置就好…………….
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。
相关文章
Mac Android Studio 3.0 Terminal 中文乱码问题处理
本文给大家分享的是在更新Android Studio 3.0之后,使用Terminal时,发现 git log 命令查看历史 log会乱码,以及最后的解决方法,推荐给小伙伴们2017-11-11
Android中Xposed框架篇---修改系统位置信息实现自身隐藏功能实例
本篇文章介绍了Android中Xposed框架的使用,详细的介绍了修改系统位置信息实现自身隐藏功能实例,有需要的朋友可以了解一下。2016-11-11
Android项目开发常用工具类LightTaskUtils源码介绍
LightTaskUtils是一个轻量级的线程管理工具,本文通过实例代码给大家详细介绍Android项目开发常用工具类LightTaskUtils的相关知识,感兴趣的朋友一起看看吧2022-06-06


最新评论