当前位置:   article > 正文

Caused by: de.greenrobot.event.EventBusException: Subscriber class has no public methods called on

de.greenrobot.event.eventbusexception: subscriber class com.wawi.android.sup

Caused by: de.greenrobot.event.EventBusException: Subscriber class has no public methods called on

使用eventbus时,在debug版本中,是没有问题的,但是release打包后,就出现了这个问题

257行是EventBus.getDefault().register(this);

解决办法:在打包的时候,混淆出问题了

需要加上

-keepclassmembers class ** { public void onEvent*(**); }

这个混淆

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/251298
推荐阅读
相关标签
  

闽ICP备14008679号