gpt4 book ai didi

Flutter 连接浏览器的时间出乎意料地长

转载 作者:行者123 更新时间:2023-12-02 16:45:28 28 4
gpt4 key购买 nike

我正在构建 flutter web 项目,在通过 firebase 实现登录页面后,我运行 flutter run -d chrome。但在尝试连接到浏览器时它被卡住了,它只是无休止地尝试而不给出任何错误消息。状态栏:

λ flutter run -d chrome
Launching lib\main.dart on Chrome in debug mode...
Building application for the web... 20,2s
Attempting to connect to browser instance..
(This is taking an unexpectedly long time.) \

flutter 医生:

λ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, v1.10.11-pre.2, on Microsoft Windows [Version 10.0.18362.356], locale ru-RU)
[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.

[√] Chrome - develop for the web
[!] Android Studio (not installed)
[√] VS Code (version 1.38.1)
[√] Connected device (2 available)

! Doctor found issues in 2 categories.

pubspec.yaml:

version: 1.0.0+1

environment:
sdk: ">=2.1.0 <3.0.0"

dependencies:
flutter:
sdk: flutter
firebase: ^5.0.0
firebase_auth:

最佳答案

尝试使用 flutter run -d web-server,然后在 Chrome 上手动打开 URL。

关于Flutter 连接浏览器的时间出乎意料地长,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58238026/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com