1、出现@Bind-annotated class incorrectly in Android framework package.错误
说明可能在包中开头的用了android.xxx或者java.xxx
修改报名就可以了
2、在引入插件后点击事件无效
a、引入jar包
compile 'com.jakewharton:butterknife:8.2.1'
b、在项目中的build.gradle 中加入
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
c、在module中的build.gradle中加入
apply plugin: "android-apt"
d、我的做法是先类似引入butterknife一样引入compile jar包,后面修改dependencies中的butterknife的‘'compile' 为 ' apt'
效果如下:
apt 'com.jakewharton:butterknife-compiler:8.2.1'
之后运行即可