EventBus报错

报错的内容and its super classes have no public methods with the @Subscribe annotation这句话大概说的意思没有找到公有含有Subscribe注解的方法,也就是说没有找到在EventBus注册Activity中含有Subscribe注解的方法。
1. 添加@Subscribe(threadMode = ThreadMode.MAIN)

2. Makefile中添加混淆 LOCAL_PROGUARD_ENABLED := disabled

否则会被优化掉。

你可能感兴趣的:(通信传输)