ButterKnife If this view is optional add '@Nullable' (fields) or '@Optional' (methods) annotation
来源:互联网 发布:base.apk是什么软件 编辑:程序博客网 时间:2024/05/22 05:02
Caused by: java.lang.IllegalStateException: Required view 'btn_login' with ID 2131558535 for method 'onClick' was not found. If this view is optional add '@Nullable' (fields) or '@Optional' (methods) annotation.
在使用ButterKnife时,有时会发生以上错误,这可能是butterknife.bind方法写在setContentView之前了,一般要保证butterknife.bind方法要在setContentView之后。
阅读全文
0 0
- ButterKnife If this view is optional add '@Nullable' (fields) or '@Optional' (methods) annotation
- If this view is optional add '@Nullable' (fields) or '@Optional' (methods) ...
- optional
- optional
- Optional
- Optional
- Optional
- Swift的Optional、if let、protocol、closure
- Optional-Optional Chaining
- #pragma mark - TableView Optional Methods - (void)tableView:(UITableView *)tableView didSelectRowAt
- Netbeans: optional language package is not installed
- boost optional
- boost optional
- boost optional
- boost optional
- boost optional
- Java8-optional
- Optional Map
- APP定制大放异彩 行业整体实力仍有待提高
- Oracle分页
- SQL中一次插入多条数据
- for循环嵌套for循环
- Linux安装jdk,tomcat,mysql
- ButterKnife If this view is optional add '@Nullable' (fields) or '@Optional' (methods) annotation
- write的奥秘
- 1063. 计算谱半径(20) PAT
- Oracle 11g环境,RAC的关闭和启动顺序
- Java基础教程22-static关键字
- Mac android studio 环境搭建和真机运行
- 安装zookeeper
- mongodb在服务端的安装
- 使用mp4v2封装h264裸流