错误显示:
Downloading the Dart SDK using the BITS service failed, retrying with WebRequest...
Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.
At C:\src\flutter\bin\internal\update_dart_sdk.ps1:68 char:5
+ Invoke-WebRequest -Uri $dartSdkUrl -OutFile $dartSdkZip
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
拜托,我需要帮助,我是 Flutter 的新手。
最佳答案
使用 VPN 并尝试再次运行该命令。它对我有用。
关于android-studio - Flutter doctor : Unable to download dart sdk, BITS 服务在 Windows 中失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59575309/