当前位置:
代码迷
>>
综合
>> 安卓 EventBus注册报错 its super classes have no public methods with the @Subscribe
详细解决方案
安卓 EventBus注册报错 its super classes have no public methods with the @Subscribe
热度:
43
发布时间:
2024-01-03 13:00:32.0
使用EventBus注册的时候总是报错,解决如下。
类的方法必须是公共的,将onCreate改为public,然后在类前面添加
@Subscribe
即可
查看全文
相关解决方案
struts2中 super,super.execute();是什么意思,如何理解
super.toString等价this.toString?解决思路
搞了两天了,maven target/classes(回绝访问。)
java中的obsolete methods 有关问题
public final static day解决方案
java super()的使用有关问题
The public type MyPanel must be defined in its own file,该如何处理
Which methods guarantee that a thread will leave the running state解决方案
<T extends Comparable< super T>>该怎么解决
error C2059: syntax error : 'public'该怎么解决
error C2059: syntax error : 'public'该如何处理
error C2059: syntax error : 'public',该怎么解决
error LNK2001: 无法解析的外部符号 "public: void _thiscall CPrj1View:OnDrawPixel(void)" (?OnDrawPixel@CPrj1View@@QAEXXZ)解决方法
public int 与 public new int 的 New 是什么意思啊该如何解决
public IllegalOperationException(string msg) : base(msg){}解决办法
急安装vs2005时出现:1406异常,无法将数值写入键\Software\Classes\.xdr\OpenWithProgids\Shared
public static修改值无效解决办法
使用MagicAJax的AjaxPanel时有时会弹出"Using the AjaxCallHelper write methods outside of an AjaxCall is not allowed."请教如何解决
“public partial class Default2 : System.Web.UI.Page”中的Page变墨色
|M| 幕白兄 小弟我那个DLL中的 public sealed class SqlHelper 这里面怎么来调用他的事务处理最科学 多谢
怎么在gridview中实现如下操作?(super easy)
public event EventHandler Click,该如何解决
[请教:public static DataSet GetListSql()和public DataSet GetListSql()定义办法有什么区别]
|M| 怎么让小弟我的类:public class MyPage: System.Web.UI.Page 在用户控件中可以引用
public static void 与 public static 类型有什么不同,该如何解决
|M| public abstract class mycn 里面的abstract是什么意思,什么时候要用到这个,该如何解决
Public Class ProductTemplate : Inherits UserControl是什么意思?该如何解决
蛇年万事大吉!Public Property Name As String = "kkk" & [color=#FF0000]nf.Users.Count[
在Exchange中怎么设置email enable public folder ? 焦急万分!
Global access to Rake DSL methods is deprecated