EventBus报错排查:its super classes have no public methods with the @Subscribe annotation
可能的问题:
1.@Subscrib问题
没有在对应的事件上加该注解,则加上并填入对应ThreadMode
@Subscribe(the hread = Thread.Main)
public void onEventMainThread(YourEvent event){
//你的逻辑
}
2.混淆问题
proguard-rules.pro中加入
-keepattributes *Annotation*
-keepclassmembers class * {
@org.greenrobot.eventbus.Subscribe <methods>;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
# Only required if you use Async