运行flutter create在“ pub get”步骤中挂起-pub get失败(69)

时间:2020-01-10 19:17:36

标签: flutter windows-subsystem-for-linux

我正在尝试使用flutter create -v project_name创建一个新的Flutter项目,但每次都会在标题中注明失败的内容。这是flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.9.1+hotfix.4, on Linux, locale C.UTF-8)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[!] Android Studio (not installed)
[✓] Proxy Configuration
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

由于安装Android开发环境的方式未安装Android Studio。此环境适用于React Native开发,因此我认为Flutter不会遇到问题。

这里是flutter create -v project_name的输出,直到挂起为止(对于StackOverflow而言太大):https://pastebin.com/NbuSe17G

其他一些注意事项(不确定它们是否有用)

  1. 我在代理人后面的公司网络中。
  2. 我在Windows 10上,但是我的环境和项目在Linux的Windows子系统(WSL)中设置。
  3. 我正在使用适用于WSL的Ubuntu应用程序运行这些命令。
  4. 我使用VS Code的远程WSL模式作为编辑器。

如果需要更多信息来帮助解决此问题,请告诉我。

0 个答案:

没有答案