博客
关于我
ButterKnife使用问题
阅读量:395 次
发布时间:2019-03-05

本文共 494 字,大约阅读时间需要 1 分钟。

1.Caused by: java.lang.IllegalStateException: Required view 'button' with ID 2131165211 for method 'clickBtn' was not found. If this view is optional add '@Nullable' (fields) or '@Optional' (methods) annotation.

绑定view的时候添加@Nullable注解。

绑定方法的时候使用@Optional注解。

2.Caused by: org.greenrobot.eventbus.EventBusException: Subscriber class com.example.mytestapp.eventbus.TestEventBusfirstActivity and its super classes have no public methods with the @Subscribe annotation

每个注册eventbus的地方都需要添加public订阅方法

转载地址:http://qdbzz.baihongyu.com/

你可能感兴趣的文章
MySQL分组函数
查看>>
MySQL分组查询
查看>>
Mysql分表后同结构不同名称表之间复制数据以及Update语句只更新日期加减不更改时间
查看>>
mySql分页Iimit优化
查看>>
MySQL分页查询
查看>>
WebDriverException:未知错误:对于旧版本的 Google Chrome,在 Python 中找不到带有 Selenium 的 Chrome 二进制错误
查看>>
mysql列转行函数是什么
查看>>
mysql创建函数报错_mysql在创建存储函数时报错
查看>>
mysql创建数据库和用户 并授权
查看>>
mysql创建数据库指定字符集
查看>>
MySql创建数据表
查看>>
MySQL创建新用户以及ERROR 1396 (HY000)问题解决
查看>>
MySQL创建用户与授权
查看>>
MySQL创建用户报错:ERROR 1396 (HY000): Operation CREATE USER failed for 'slave'@'%'
查看>>
MySQL创建索引时提示“Specified key was too long; max key length is 767 bytes”
查看>>
mysql初始密码错误问题
查看>>
MySQL删除数据几种情况以及是否释放磁盘空间【转】
查看>>
Mysql删除重复数据通用SQL
查看>>
mysql判断某一张表是否存在的sql语句以及方法
查看>>
mysql加入安装策略_一键安装mysql5.7及密码策略修改方法
查看>>