当前位置:   article > 正文

EventBus: Subscriber class XXX and its super classes have no public method with the @Subscribe_and its super classes have no public methods with

and its super classes have no public methods with the @subscribe annotation

EventBus报错:Subscriber class XXX and its super classes have no public method with the @Subscribe annotation

错误信息
 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.haval.wms/com.haval.wms.host.HomeActivity}: org.greenrobot.eventbus.EventBusException: Subscriber class com.haval.wms.host.HomeActivity and its super classes have no public methods with the @Subscribe annotation
                              	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2781)
                              	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2859)
                              	at android.app.ActivityThread.-wrap11(Unknown Source:0)
                              	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1592)
                              	at android.os.Handler.dispatchMessage(Handler.java:106)
                              	at android.os.Looper
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/251253
推荐阅读
相关标签
  

闽ICP备14008679号