butterknife使用

//学习地址 :https://www.jianshu.com/p/3678aafdabc7

  1. 导入依赖

在这里插入图片描述

	implementation 'com.jakewharton:butterknife:9.0.0-rc1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'

二.导入权限
在这里插入图片描述

  classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-rc1'

三.导入文件

apply plugin: 'com.jakewharton.butterknife'

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Guilin666/article/details/83718616