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

使用EventBus时会出现its super classes have no public methods with the @Subscribe annotation,


在当前EventBus.getDefault().register(this); 的activity也要加上下面这句,哪怕你不用 


@Subscribe(threadMode = ThreadMode.MAIN)

public void onMessageEvent(Object myEvent) {

}

你可能感兴趣的:(EventBus报错:its super classes have no public methods with the @Subscribe annotation)