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、重新构建项目即可使用