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)
根据提示解决:在build.gradle(Module) 中加
annotationProcessor ‘com.jakewharton:butterknife:7.0.1’
如图:
版本10.0.1出现这样的问题是类似的解决方式
annotationProcessor ‘com.jakewharton:butterknife:10.0.1’
(与title无关的内容…)
附上bufferknife的网站备用
btw, 才刚认识butterknife它就已经deprecated了,最新的替代是 view Binding