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,
解决方法如下:
在 build.gradle 中defaultConfig 里面添加
javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }
就搞定了