@PheonixHkbxoic
2017-05-04T08:49:05.000000Z
字数 582
阅读 744
Android
Gradle build Project dependencies中添加classpath
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
// 添加butterknife使用插件
classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1'
}
}
Gradle build module
/* 使用butterknife插件 */
//apply plugin: 'com.android.library'
apply plugin: 'com.jakewharton.butterknife'
/* butterknife */
compile 'com.jakewharton:butterknife:8.5.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'