美文网首页
导入butterknife的步骤

导入butterknife的步骤

作者: 啤酒小龙虾 | 来源:发表于2018-12-11 15:24 被阅读0次

1.在根项目中

classpath'com.jakewharton:butterknife-gradle-plugin:8.5.1'

2.app gradle中

//导入butterkuife

compile'com.jakewharton:butterknife:8.8.1'

annotationProcessor'com.jakewharton:butterknife-compiler:8.8.1'

3.不要忘记在上方也要添加

applyplugin:'com.jakewharton.butterknife'//导入butterkuife

4.使用

//绑定初始化ButterKnife  在onCreate方法中

ButterKnife.bind(this);

相关文章

网友评论

      本文标题:导入butterknife的步骤

      本文链接:https://www.haomeiwen.com/subject/pmcjaftx.html