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 · 5 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 ?

This was referenced Jul 6, 2020
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants