博客
关于我
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/

你可能感兴趣的文章
Nginx入门教程-简介、安装、反向代理、负载均衡、动静分离使用实例
查看>>
Nginx入门简介和反向代理、负载均衡、动静分离理解
查看>>
nginx入门篇----nginx服务器基础配置
查看>>
vue中参数传不到后台去怎么办?
查看>>
nginx反向代理
查看>>
Nginx反向代理
查看>>
nginx反向代理、文件批量改名及统计ip访问量等精髓总结
查看>>
Nginx反向代理与正向代理配置
查看>>
Nginx反向代理及负载均衡实现过程部署
查看>>
Nginx反向代理和负载均衡部署指南
查看>>
Nginx反向代理是什么意思?如何配置Nginx反向代理?
查看>>
nginx反向代理解决跨域问题
查看>>
nginx反向代理解决跨域问题,使本地调试更方便
查看>>
nginx反向代理转发、正则、重写、负摘均衡配置案例
查看>>
Nginx反向代理配置
查看>>
Nginx启动SSL功能,并进行功能优化,你看这个就足够了
查看>>
nginx启动脚本
查看>>
Nginx和Tomcat的区别
查看>>
Nginx在Windows上和Linux上(Docker启动)分别配置基本身份认证示例
查看>>
Nginx在Windows下载安装启动与配置前后端请求代理
查看>>