Eventbus注册异常:its super classes have no public methods with the @Subscribe annotation
2017-05-08 14:47
2763 查看
解决办法:
1.加注解:这里只要在 onEventMainThread 这个回调 方法(或者其它回调方法)上加上 @Subscribe 注解就可以了。
2 EventBus.getDefault().register(this); 注意这里是this,如果你写上下文context是行不通的,就算你加了上述的注解还是会报题目的错!
1.加注解:这里只要在 onEventMainThread 这个回调 方法(或者其它回调方法)上加上 @Subscribe 注解就可以了。
2 EventBus.getDefault().register(this); 注意这里是this,如果你写上下文context是行不通的,就算你加了上述的注解还是会报题目的错!
相关文章推荐
- 使用EventBus框架报异常:its super classes have no public methods with the @Subscribe annotation
- 异常 EventBusException:its super classes have no public methods with the @Subscribe annotation
- 异常 EventBusException:its super classes have no public methods with the @Subscribe annotation
- EventBus3.0报错..its super classes have no public methods with the @Subscribe annotation
- 使用EventBus,debug不报错,release版本报错:its super classes have no public methods with the @Subscribe annotat
- EventBus报错:and its super classes have no public methods with the @Subscribe annotation
- [置顶] 【Android】AndroidStudio关于EventBus报错解决方法its super classes have no public methods with the @Subscribe
- MainActivity and its super classes have no public methods with the @Subscribe annotation
- AndroidStudio关于EventBus报错解决方法its super classes have no public methods with the @Subscribe
- Subscriber class xxx.xxx.xxx and its super classes have no public methods with the@Subscribe annotat
- Subscriber class xxx.xxx.xxx and its super classes have no public methods with the@Subscribe annotat
- 【Android】AndroidStudio关于EventBus报错解决方法its super classes have no public methods with the @Subscr...
- EventBus 注册错误no public methods with the @Subscribe annotation
- EventBusException: Subscriber class *** and its super classes have no public methods with the @Subsc
- EventBusException: Subscriber class *** and its super classes have no public methods with the @Subsc
- EventBusException: Subscriber class *** and its super classes have no public methods with the @Subsc
- Subscriber class .NewsFragment and its super classes have no public methods
- EventBus的使用及 解决异常 has no public methods called
- Hibernate3.x异常No row with the given identifier exists 解决方法
- Entities exposed by DomainService operations must have at least one public property marked with the KeyAttribute