Skip to content

Unhandled Exception: MissingPluginException #105

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

Closed
mateusz-grzegorzek opened this issue Oct 15, 2020 · 2 comments
Closed

Unhandled Exception: MissingPluginException #105

mateusz-grzegorzek opened this issue Oct 15, 2020 · 2 comments

Comments

@mateusz-grzegorzek
Copy link

Hello,

I was trying to run simple application with url_launcher plugin and it crashed with following exception:

[ERROR:engine/src/flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method canLaunch on channel plugins.flutter.io/url_launcher)
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:157:7)
<asynchronous suspension>
#1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
#2      MethodChannelUrlLauncher.canLaunch (package:url_launcher_platform_interface/method_channel_url_launcher.dart:18:21)

In README I found:

You can now theoretically run every flutter app you want using flutter-pi, including apps using extensions & plugins, 
just that you'd have to build the platform side of the plugins you'd like to use yourself.

So how can I build this platform side of the plugin and then use it with flutter-pi?
I see that url_launcher have linux platform code, so I need to somehow port this code to RPi?

Thanks in advance!

@ardera
Copy link
Owner

ardera commented Oct 15, 2020

You can't open multiple windows on headless linux. That's the thing about flutter-pi: there's only one window, which is flutter-pi. There's no window manager running in the background (Wayland or X11) like in desktop linux. If you want multiple windows, you may have better luck with the official linux desktop embedding.

@mateusz-grzegorzek
Copy link
Author

Ok, thank you for info!

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