AndroidStudio关于EventBus报错解决方法its super classes have no public methods with the @Subscribe
来源:互联网 发布:linux的ftp权限设置 编辑:程序博客网 时间:2024/06/05 14:18
今天使用EventBus,这行报错:
EventBus.getDefault().register(this);
查看日志显示,its super classes have no public methods with the @Subscribe annotation
虽说有提示,但还是一头雾水,只能一步一步踩坑了。经过不断试错,终于找到问题所在:
EventBus接收消息的方法,即使用@Subscribe注解的方法,必须是公共方法,否则会报错!
希望我踩过的坑可以帮到别人。如有不对,请多指教!
阅读全文
0 0
- AndroidStudio关于EventBus报错解决方法its super classes have no public methods with the @Subscribe
- 【Android】AndroidStudio关于EventBus报错解决方法its super classes have no public methods with the @Subscribe
- 关于eventbus报错its super classes have no public methods with the @Subscribe的问题
- EventBus报错:and its super classes have no public methods with the @Subscribe annotation
- 使用EventBus框架报异常: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注册异常: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
- MainActivity and its super classes have no public methods with the @Subscribe annotation
- 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
- 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
- EventBus 注册错误no public methods with the @Subscribe annotation
- Subscriber class .NewsFragment and its super classes have no public methods
- EventBus的使用及 解决异常Subscriber ****has no public methods called **
- spark mllib 决策树算法
- Python循环中的变量作用域的灵异现象
- vysor原理以及Android同屏方案
- 【JS与CSS文件导入与执行冲突】
- 设计模式之一: 简单工厂模式
- AndroidStudio关于EventBus报错解决方法its super classes have no public methods with the @Subscribe
- mysql安装
- Stack的三种含义
- 安卓逆向之基于Xposed-ZjDroid脱壳
- JSNU智慧教育学院2017私房帖(一)
- C main 函数的返回值
- Error:Failed to open zip file. Gradle's dependency cache may be corrupt
- VSCrawler爬虫项目介绍
- AD1256之STM32程序——STM32测试高精度ADC篇(四)