最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
解决Android Studio 3.0 butterknife:7.0.1配置的问题
时间:2022-06-25 23:06:53 编辑:袖梨 来源:一聚教程网
网上教程7.0大多数配置是这样compile ‘com.jakewharton:butterknife:7.0.1' ,不知道他们用的Android Studio是多少版本,我用的3.0并没有成功,报错如下:
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.an*dro*i*d.com/r/tools/annotation-processor-error-message.html for more details.
解决办法:加上 annotationProcessor ‘com.jakewharton:butterknife:7.0.1'即可解决
相关文章
- 植物大战僵尸杂交版金盏吸金磁能力解析 07-26
- 异梦残响晏景明详细介绍 异梦残响晏景明属性技能 07-26
- 逆战未来怪物血条数值详解 07-26
- 原神6.3奇馈宝箱位置在哪 奇馈宝箱位置大全 07-26
- 逆战未来新手游戏界面设置指南 07-26
- 鹅鸭杀地图及模式解锁问答一览 07-26