我尝试运行的任何 flutter 命令都在显示
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine af51afceb8886cc11e25047523c4e0c7e1f5d408...
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\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
Error: Unable to update Dart SDK. Retrying...
Waiting for 1 seconds, press CTRL+C to quit ...
Terminate batch job (Y/N)?
我已经学习 flutter 3 个月了,效果很好。任何关于如何解决这个问题的建议
最佳答案
看起来是一个已知问题。你能检查一下链接吗?
https://github.com/flutter/flutter/issues/27276
关于flutter - cmd 上的“flutter 医生”命令不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61050813/