1.接收方法设置为private
org.greenrobot.eventbus.EventBusException: Subscriber class 你的注册类 and its super classes have no public methods with the @Subscribe annotation
解决方案:修改为public
2.重复注册
Caused by: org.greenrobot.eventbus.EventBusException: Subscriber class 你注册的类 already registered to event class java.lang.String
多发地带OnResume方法
解决方案:加入是否已注册判断
@Override
public voidonResume() {
super.onResume();
if(!EventBus.getDefault().isRegistered(this)) {
EventBus.getDefault().register(this);
}
}