Flutter 花费了很长时间才能连接到浏览器
发布于 2021-01-31 15:40:47
我正在构建flutter网站项目,并通过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 doctor:
λ 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:
关注者
0
被浏览
180
1 个回答
推荐阅读
-
无法使用Ruby Selenium WebDriver连接到浏览器
2021-02-01 关注 0 浏览139 1答案
-
违规长时间运行的 JavaScript 任务花费了 xx 毫秒
2022-03-22 关注 0 浏览25 1答案
-
违反长时间运行的JavaScript任务花费了xx毫秒
2021-02-02 关注 0 浏览91 1答案
-
Java程序执行命令要花费很长时间
2021-01-29 关注 0 浏览84 1答案
-
ajax请求后浏览器将等待多长时间?
2021-01-31 关注 1 浏览92 1答案
-
Persistence.createEntityManagerFactory()需要很长时间才能返回
2021-02-01 关注 0 浏览93 1答案
-
在Node.js中循环使用findOne会花费很长时间
2021-01-31 关注 0 浏览91 1答案
-
防止长时间运行的JavaScript锁定浏览器
2021-02-02 关注 0 浏览390 1答案
-
长时间轮询会冻结浏览器并阻止其他ajax请求
2021-02-02 关注 0 浏览61 1答案
-
在庞大的数据集上使用Logistic回归模型需要很长时间才能训练,如何花费更少的时间,并给出比较相近的精度?
2021-11-03 关注 0 浏览190 1答案