: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.73k
stars
612
forks
source link
Not find method "toAppPage" implementation! please check if the signature or namespace of the method is right #173
Not find method "Native本地方法名" implementation! please check if the signature or namespace of the method is right
代码如下: fun initWeb() { showLoading() webView.settings.javaScriptEnabled = true webView.settings.javaScriptCanOpenWindowsAutomatically = true webView.settings.useWideViewPort = true webView.settings.allowContentAccess = true webView.settings.setAppCacheEnabled(false) webView.settings.loadWithOverviewMode = true
// DWebView.setWebContentsDebuggingEnabled(true) webView.addJavascriptObject(AnnieApi(), null) }
public class AnnieApi {
}
接收的参数都是object的,但还是出现了异常