wendux / DSBridge-Android

:earth_americas: A modern cross-platform JavaScript bridge, through which you can invoke each other's functions synchronously or asynchronously between JavaScript and native.
3.77k stars 616 forks source link

Not find method "" + methodName + "" implementation! please check if the signature or namespace of the method is right #52

Closed hrx3627 closed 6 years ago

hrx3627 commented 6 years ago

Not find method "" + methodName + "" implementation! please check if the signature or namespace of the method is right

大神,你好。我在使用你的库的时候,这个通过反射获取方法是空的,我的方法修饰符是public,请问是什么原因呢?

wendux commented 6 years ago

把你代码贴出来

wendux commented 6 years ago

长时间未回复,先关闭。

zhangyubao commented 5 years ago

Resolve it. @JavascriptInterface fun sendInvitation(friendData: Any){ RxBus.post(EventSendIM(friendData)) }

函数中定义的方法一定要是Object类型