Android Butterknife 8.8.1 使用方法

1、在项目project的 build.gradle 文件中 dependencies 添加:

classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'

2、在 module的build.gredle 文件中  dependencies  添加依赖:

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

3、重新构建项目即可使用


猜你喜欢

转载自blog.csdn.net/aminy123/article/details/78458626
今日推荐