更新gradle 3以后,出现以下错误信息:
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:
解决办法:
在defaultConfig
配置里添加:
android {
...
defaultConfig {
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
}
}
}
}