已经安装了ButterKnife Zelezny插件,导入了库
'com.jakewharton:butterknife:8.8.1'
但是在生成了 onViewClicked后,点击事件无响应。
解决方法:
导入库
'com.jakewharton:butterknife-compiler:8.8.1' 导入时默认格式是 implementation 'com.jakewharton:butterknife-compiler:8.8.1'
修改成
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'