使用butterknife的BindView时报错@BindView not applicable to type
@BindView not applicable to type
经过:
编译版本都是23
依赖版本也是23
控制台报的错误是supportv4有多个入口
原因:
compile 'com.jakewharton:butterknife:'需要与编译的版本号所对应
解决办法:
1.将版本号由8.5.0改成8.4.0就行了,即compile 'com.jakewharton:butterknife:8.5.0'改为compile 'com.jakewharton:butterknife:8.4.0'。
2.如果是8.5.0的话,编译版本都改为24,即: