EventBus报错:its super classes have no public methods with the @Subscribe annotation

EventBus报错:its super classes have no public methods with the @Subscribe annotation看源码得知,其注解方法为空,则在当前类或者父类中,没有接收event发送的消息,
所以在收到回调的方法中添加如**解方法
@Subscribe(threadMode = ThreadMode.MAIN)
public void onCollectionEvent(CollectionEvent event) {}

注意:发布事件中的参数是Event的实例,而订阅函数中的参数也是Event的实例,可以推断EventBus是通过post函数传进去的类的实例来确定调用哪个订阅函数的,是哪个就调用哪个,如果有多个订阅函数呢,那么这些函数都会被调用!