as butterknife 插件使用
动图使用详细

1.安装插件

2. 配置 gradle
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.jakewharton:butterknife:8.5.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
compile "com.android.support:support-v4:$SUPPORT_VERSION"
compile "com.android.support:design:$SUPPORT_VERSION"
testCompile "junit:junit:$JUNIT_VERSION"
}apply plugin: 'com.jakewharton.butterknife'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1'
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}3.使用




捐助开发者
在兴趣的驱动下,写一个免费的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(支持支付宝和微信捐助,加入it技术扣扣群),没钱捧个人场,谢谢各位。



谢谢您的赞助,我会做的更好!
相关推荐
sheikhdz 2020-05-18
humanbeng 2020-03-05
一抹离愁 2019-12-11
Geeny 2019-06-30
QiuYangAndZhang 2019-06-30
Palingenesis 2019-06-28
sheikhdz 2019-06-27
一抹离愁 2019-06-26
OliverLau 2019-06-20
sheikhdz 2018-04-22
大白ol 2017-04-20
humanbeng 2016-08-09
绿豆饼 2016-06-03
QiuYangAndZhang 2016-05-18
sheikhdz 2015-09-23
静博圣宇 2015-08-14
一抹离愁 2014-10-23
WYHHealer 2014-07-01