Android Studio3.3.2+gradle 3.3.2版本使用ButterKnife出错问题
在Android Studio3.3.2版本中使用ButterKnife的最新版本一直编译通不过,花式报错,退而求其之,使用旧版解决:
implementation 'com.jakewharton:butterknife:8.4.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
同时注释module=中build.gradle的
//apply plugin: 'com.jakewharton.butterknife'
以及项目中build.gradle的
//classpath 'com.jakewharton:butterknife-gradle-plugin:8.4.0'
如果不注释,编译的时候会报错,提示使用9.0.0-rc2或者更高版本,如下:
ERROR: The Android Gradle plugin supports only Butterknife Gradle plugin version 9.0.0-rc2 and higher.
The following dependencies do not satisfy the required version:
root project 'ButterKnifeDemo' -> com.jakewharton:butterknife-gradle-plugin:8.4.0
然而,并没什么用,虽然编译的时候不报错了,运行之后。。。。。:
将就用着先吧,期待新版本能解决