CustomWebView Runtime Error: No method named `CreateWebView'

I'm trying to create a CustomWebView in a VerticalArrangement container with id 0, but for some reason it doesn't create the webview and returns an error saying:

Runtime Error
invoke: no method named `CreateWebView' in class java.lang.Boolean

I tried recreating the WebView with id 1, but I don't think the id is the problem because it still returned the same error.

Show your relevant blocks

Reload page and then connect to companion.


This is simply all the blocks that I added in this screen.

Now it says:

invoke: no method named `CreateWebView' in class java.lang.Boolean

Clearly that did not work.

Here are few things you can do:

  1. Update companion.
  2. Clear data of companion app.
  3. Try a different project.

I tried 1 and 2, and none of my projects use CustomWebView.

You have a setup block missing. Read the documentation.

Exactly what documentation are you talking about?
And what exactly is a Setup Block?

I don't see any documentation or something related to a setup block.

Was it supposed to be like that?

Yes, but your error is not related with that.
Somehow CustomWebView's AndroidRuntime.jar has not been sent to companion app from AI2 server.

Yeah but it did crash the companion because I created the WebView with ID 0.
And adding the SetWebView block worked.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.