Eventbus错误:org.greenrobot.eventbus.EventBusException: Subscriber class

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/weixin_40420578/article/details/100207465

org.greenrobot.eventbus.EventBusException: Subscriber class com.example.module_login.ui.activity.LoginActivity already registered to event class com.example.module_common.eventbus.MessageEvent

Android使用eventbus注册事件时报以上错误,说明已经注册过了,不能重复注册。

注:一个页面只能注册一次(在没有注销的情况下)

猜你喜欢

转载自blog.csdn.net/weixin_40420578/article/details/100207465