AS3.0配置黄油刀
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'com.jakewharton:butterknife-compiler:8.8.1'
在 app 下面的 build.gradle里面加上就好
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
}
}
android {
...
defaultConfig {
...
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
}
}
}
}