MissingPluginException while using plugin for flutter

前端 未结 7 2137
忘掉有多难
忘掉有多难 2020-12-06 09:01

I am trying to use the plugin

_launchURL(url) async {
  await launch(\"www.google.com\");
}

I have put \"www.google.com\" just for debuggi

相关标签:
7条回答
  • 2020-12-06 09:51

    If you are using hot restart or hot reload, it won't do the trick. Since Flutter has to inject plugin dependencies into the platform-specific parts of your app, hot restart/hot reload is not enough to trigger the injection. Check this issue for more.

    Close the app and execute flutter run command.

    0 讨论(0)
提交回复
热议问题