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

你可能感兴趣的文章
Nacos-配置中心
查看>>
Nacos2.X 源码分析:为订阅方推送、服务健康检查、集群数据同步、grpc客户端服务端初始化
查看>>
Nacos2.X 配置中心源码分析:客户端如何拉取配置、服务端配置发布客户端监听机制
查看>>
Nacos2.X源码分析:服务注册、服务发现流程
查看>>
NacosClient客户端搭建,微服务注册进nacos
查看>>
Nacos中使用ribbon
查看>>
Nacos使用OpenFeign
查看>>
Nacos使用Ribbon
查看>>
Nacos做注册中心使用
查看>>
Nacos做配置中心使用
查看>>
Nacos入门过程的坑--获取不到配置的值
查看>>
Nacos原理
查看>>
Nacos发布0.5.0版本,轻松玩转动态 DNS 服务
查看>>
Nacos启动异常
查看>>
Nacos命名空间配置_每个人用各自自己的命名空间---SpringCloud Alibaba_若依微服务框架改造---工作笔记001
查看>>
Nacos和Zookeeper对比
查看>>
Nacos在双击startup.cmd启动时提示:Unable to start embedded Tomcat
查看>>
Nacos基础版 从入门到精通
查看>>
Nacos如何实现Raft算法与Raft协议原理详解
查看>>