butterknife 使用注意事项
2015-07-09 18:39
330 查看
写了个demo,一直报错
Caused by: java.lang.IllegalStateException: Required view 'tv1' with ID 2131492943 for field 'textView' was not found. If this view is optional add 'Nullable' annotation.
检查很多遍,原因是因为把b i n d( t h i s)写到了setContentView前面,,导致无法绑定View
Caused by: java.lang.IllegalStateException: Required view 'tv1' with ID 2131492943 for field 'textView' was not found. If this view is optional add 'Nullable' annotation.
检查很多遍,原因是因为把b i n d( t h i s)写到了setContentView前面,,导致无法绑定View
相关文章推荐
- 深入理解DB2缓冲池(BufferPool)
- css 实现6宫格图标
- GPIO口中断例程_MK20DX128VLH5_K20系列
- JavaScript-ajax学习
- Javascript模块化编程(三):require.js的用法
- Javascript模块化编程(二):AMD规范
- Javascript模块化编程(一):模块的写法
- html中嵌入内容的元素总结
- bootstrap 动态添加验证项和取消验证项
- 问题解决 —— Jsp界面之间传参乱码
- jsTree
- css3--背景图片适应不同分辨率手机
- jQuery Ajax 实例 ($.ajax、$.post、$.get)
- HTML中iFrame标签的两个用法介绍
- Jquery之路(二) 笔记
- html5开发之viewport使用
- Jquery的parent和parents(找到某一特定的祖先元素)用法
- jquery中html()、text()、val()的区别(转)
- 【LeetCode】222. Count Complete Tree Nodes
- css在用空元素、无内容的元素布局不兼容ie7/8