博客
关于我
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 5.0-触发器(参考)_mysql
查看>>
MySQL及navicat for mysql中文乱码
查看>>
MySqL双机热备份(二)--MysqL主-主复制实现
查看>>
MySQL各个版本区别及问题总结
查看>>
MySql各种查询
查看>>
mysql同主机下 复制一个数据库所有文件到另一个数据库
查看>>
mysql启动以后会自动关闭_驾照虽然是C1,一直是开自动挡的车,会不会以后就不会开手动了?...
查看>>
mysql启动和关闭外键约束的方法(FOREIGN_KEY_CHECKS)
查看>>
Mysql启动失败解决过程
查看>>
MySQL启动失败:Can't start server: Bind on TCP/IP port
查看>>
mysql启动报错
查看>>
mysql启动报错The server quit without updating PID file几种解决办法
查看>>
mysql命令
查看>>
mysql命令==_mysql命令
查看>>
mysql命令和mysql的配置文件
查看>>
watch
查看>>