Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: JavaBridge #98

Closed
DreamBuddy opened this issue May 22, 2019 · 4 comments

Comments

@DreamBuddy
Copy link

Flutter 1.6 cause this bug....

@DreamBuddy
Copy link
Author

DreamBuddy commented May 22, 2019

In JavaScriptBridgeInterface.java Wrap getChannel().invokeMethod("onCallJsHandler...

final Handler handler = new Handler(Looper.getMainLooper());
    handler.post(new Runnable() {
      @Override
      public void run() {
           getChannel().invokeMethod("onCallJsHandler"...
      }
});

@pichillilorenzo
Copy link
Owner

Thanks!

@pichillilorenzo
Copy link
Owner

This should be fixed with the new version 1.2.0

@DreamBuddy
Copy link
Author

You are so kind,thank you.
May I ask if you can check issue #72 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants