1.Project的build.gradle文件中增加
dependencies {
classpath ‘com.neenbedankt.gradle.plugins:android-apt:1.8’
}
2.在Module的build.gradle文件中增加
apply plugin: ‘com.neenbedankt.android-apt’
Dependencies中增加下面两句
compile ‘com.jakewharton:butterknife:8.4.0’
apt ‘com.jakewharton:butterknife-compiler:8.4.0’