ButterKnife BindView 失败,报错NullPointerException
2017-05-03 16:18
1241 查看
ButterKnife BindView 失败,报错NullPointerException,得到的View是null
原因是配置有误。
第一步
第二步
第三步
简书地址
http://www.jianshu.com/p/34e2ef011609
如喜欢此文,欢迎star和关注,不正支出,欢迎留言交流!
微信扫一扫关注我的以下微信公众号
【程序猿小白成长记】定期分享各类Java、Android等知识
【每日哈哈笑一笑】笑一笑十年少,工作之余,别忘了放松下
我的GitHub
我的CSDN
我的简书
开发笔记
原因是配置有误。
第一步
apply plugin: 'com.jakewharton.butterknife'
第二步
compile 'com.jakewharton:butterknife:8.5.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
第三步
classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1'
简书地址
http://www.jianshu.com/p/34e2ef011609
如喜欢此文,欢迎star和关注,不正支出,欢迎留言交流!
微信扫一扫关注我的以下微信公众号
【程序猿小白成长记】定期分享各类Java、Android等知识
【每日哈哈笑一笑】笑一笑十年少,工作之余,别忘了放松下
我的GitHub
我的CSDN
我的简书
开发笔记
相关文章推荐
- ButterKnife 8.0.1 @BindView 失败,nullpointerexception
- ButterKnife 8.0.1 @BindView 失败,nullpointerexception
- ButterKnife 8.0.1 @BindView 失败,nullpointerexception
- ButterKnife 8.4.0 @BindView 失败,nullpointerexception
- ButterKinfe.bind(this) @BindView时出现NullPointerException
- ButterKnife.bind(this)发生NullPointerException
- 关于butterknife8.0.1提示NullPointerException空指针的问题
- Eclipse中使用butterknife出现nullPointerException
- Android Butterknife 8.4.0 使用时报错java.lang.NullPointerException
- 解决Android Studio 3.0.1 下使用ButterKnife 8.8.1版本出现 nullpointerexception 等异常问题
- recycleview 报 NullPointerException
- NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParam
- NullPointerException at android.widget.AbsListView.obtainView at android.widget.GridView.onMeasure
- Hibernate学习(一)——Dao注入失败导致NullPointerException
- NullPointerException at android.widget.AbsListView.obtainView at android.widget.GridView.onMeasure
- PopupWindow错误:PopupWindow$1.onScrollChanged 出现 NullPointerException和PopupViewContainer.dispatchKeyEvent 出现 NullPointerException
- NullPointerException at android.widget.AbsListView.obtainView.
- 在onAnimationEnd方法中调用 viewgroup.removeview,报 nullpointerexception异常的解决方法
- Android Listview addHeaderView setadapter的时候莫名NullPointerException 解决
- AIDL:远程调用服务里的方法失败,提示取得的IBinder对象NullPointerException