1.项目的build.gradle
修改buildscript
buildscript { repositories { mavenCentral() } dependencies { classpath classpath } }
2.修改Module:app
build.gradle新增
apply plugin: 'com.neenbedankt.android-apt'
dependencies中增加
compile 'com.jakewharton:butterknife:8.0.1' apt 'com.jakewharton:butterknife-compiler:8.0.1'