android studio里配置butterknife8.4步骤

1:在as里添加com.jakewharton:butterknife:8.4.0和com.jakewharton:butterknife-compiler:8.4.0

2:在工程gradle的dependencies里添加classpath'com.neenbedankt.gradle.plugins:android-apt:1.8'

3:在app:Modle里添加 applyplugin:'android-apt',并在dependencies里将compile'com.jakewharton:butterknife-           compiler:8.4.0'改为apt'com.jakewharton:butterknife-compiler:8.4.0'

4:再在工程gradle的dependencies里添加classpath'com.jakewharton:butterknife-gradle-plugin:8.4.0'

或者:

1:在as里添加com.jakewharton:butterknife:8.4.0和com.jakewharton:butterknife-compiler:8.4.0,并添加applyplugin:'com.neenbedankt.android-apt'依赖

2:在工程gradle的dependencies里添加classpath'com.neenbedankt.gradle.plugins:android-apt:1.8'

你可能感兴趣的:(android studio里配置butterknife8.4步骤)