a、引入ButterKnife库,必须引入ButterKnife库,生成ButterKnife的菜单才可用
b、在R.layout.xxxxx的布局名称上点击右键,在弹出菜单依次选择Aedu->Generate Butterknife Injections,然后按照弹窗指示继续操作即可
c、设置字段前缀,如mUserNameEdit。File->Settings->Other Settings->ButterknifeZelezny->Prefix.....
![](https://box.kancloud.cn/557db2899320246d7b69dd6e162eb23b_995x628.bmp)
![](https://box.kancloud.cn/3ca3b432b4432e5ad65c525d201fb1e6_1252x547.bmp)