EventBus icon indicating copy to clipboard operation
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

Open suryapratap1 opened this issue 5 years ago • 3 comments
trafficstars

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

suryapratap1 avatar Jul 09 '20 10:07 suryapratap1

Check your R8 / ProGuard rules. https://github.com/greenrobot/EventBus#r8-proguard

greenrobot-team avatar Jul 13 '20 05:07 greenrobot-team

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

arpit-korechi avatar Aug 10 '20 15:08 arpit-korechi

Same problem

ahyangnb avatar Jun 05 '22 04:06 ahyangnb

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 :)

tomridder avatar Mar 15 '23 17:03 tomridder

u should register in the class which contains the @subscribe method. probably u register in the wrong class :)

tomridder avatar Mar 15 '23 17:03 tomridder

The original poster has not replied in a long time. Closing this.

greenrobot-team avatar Mar 27 '23 12:03 greenrobot-team