报错如下:org.greenrobot.eventbus.EventBusException: Subscriber class com.--Activity and its super classes ...

如上问题需要在混淆文件规则(proguard-rules.pro)添加如下配置即可:

-keepattributes *Annotation*
-keepclassmembers class ** {
    @org.greenrobot.eventbus.Subscribe <methods>;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }

# Only required if you use AsyncExecutor
-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
    <init>(java.lang.Throwable);
}