我应该在何处/何时添加 Green Robot Event Bus 库的索引:
EventBus.builder().addIndex(new MyEventBusIndex()).installDefaultEventBus();
如此处所述?我已经把这个 onCreate() 方法放在我的启动器活动中,但有时我会得到:
Caused by: org.greenrobot.eventbus.h: Default instance already exists. It may be only set once before it's used the first time to ensure consistent behavior.
我哪里错了?非常感谢。