EventBus
EventBus copied to clipboard
Unable to start activity ComponentInfo m.d.a.g: Subscriber class and its super classes have no public methods with the @Subscribe annotation
I am getting this error when "minifyEnabled true".
java.lang.RuntimeException: Unable to start activity ComponentInfo m.d.a.g: Subscriber class and its super classes have no public methods with the @Subscribe annotation
Check your R8 / ProGuard rules. https://github.com/greenrobot/EventBus#r8-proguard
minifyEnabled false still I am getting this Error. Please check SO for the description. https://stackoverflow.com/questions/63341627/eventbusexception-its-super-classes-have-no-public-methods-with-the-subscribe
Same problem
t
minifyEnabled false still I am getting this Error. Please check SO for the description. https://stackoverflow.com/questions/63341627/eventbusexception-its-super-classes-have-no-public-methods-with-the-subscribe
it is because u should register in MainFragment,not in MainActivity :)
u should register in the class which contains the @subscribe method. probably u register in the wrong class :)
The original poster has not replied in a long time. Closing this.