【Bug】android Studio使用butterknife报错的解决方法
2018-03-24 22:26
746 查看
转载自: https://blog.csdn.net/huangxiaoguo1/article/details/78111857
报错:
解决方法:
在defaultConfig{}下添加:
报错:
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 } } } }
在defaultConfig{}下添加:
javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }
相关文章推荐
- android studio使用ButterKnife 8.0.1报空指针错误以及点击事件无效的解决方法
- android studio使用ButterKnife 8.0.1报空指针错误以及点击事件无效的解决方法
- android studio 使用的一些注意,一些报错的解决方法(原创)
- logback日志项目使用方法 - 150205交易模块添加日志信息logback,orderNo订单号为log主键便于跟踪,数字常量化,解决取消支付BUG,弱网络环境原因
- 浅谈Android Fragment嵌套使用存在的一些BUG以及解决方法
- 浅谈Android Fragment嵌套使用存在的一些BUG以及解决方法
- Android Studio 怎么添加使用第三方jar包及无法编译的问题解决方法
- 浅谈Android Fragment嵌套使用存在的一些BUG以及解决方法
- 浅谈Android Fragment嵌套使用存在的一些BUG以及解决方法
- android studio 使用gradle compile' xxxx' 没有成功加载的程序解决方法
- Android:Android Fragment嵌套使用存在的一些BUG以及解决方法
- Android Studio 使用日志:2.升级 JDK 后,Android Studio 启动编译报错的解决方法
- 引入别人的Android Studio项目遇到的bug以及解决方法
- android studio使用模拟器上时出现中文乱码问题解决方法
- [Bug]使用ST_Geometry查询结果不准确的解决方法
- 浅谈Android Fragment嵌套使用存在的一些BUG以及解决方法
- android studio 百度地图使用环境配置及230错误码解决方法
- Android studio在使用过程中常见的问题及解决方法(不定期更新)
- 浅谈Android Fragment嵌套使用存在的一些BUG以及解决方法
- Android Studio 使用 SVN 必定遇到问题:commit ** File out of data 问题解决方法