当前位置: 代码迷 >> 综合 >> 安卓 EventBus注册报错 its super classes have no public methods with the @Subscribe
  详细解决方案

安卓 EventBus注册报错 its super classes have no public methods with the @Subscribe

热度:43   发布时间:2024-01-03 13:00:32.0
使用EventBus注册的时候总是报错,解决如下。

类的方法必须是公共的,将onCreate改为public,然后在类前面添加
@Subscribe即可

  相关解决方案