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

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

猜你喜欢

转载自blog.csdn.net/xiaopihair123/article/details/127919125