1、引入Gradel:
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'com.jakewharton:butterknife:10.0.0'
引入10.0.0版本后,绑定方式为:
@BindView(R.id.title_view) TextView titleView;
2、在Plugins查找后插入:
3、在页面中可以在引入的主页布局上进行右击后查看:
4、点击后进行:
5、点击就完事了: