Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'flutter doctor' command on cmd not working

Tags:

flutter

dart

any flutter command I tried running it's showing

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)?

I have been learning flutter for 3 months now and it worked fine. Any Suggestion how to fix this problem

like image 330
learner Avatar asked Jun 04 '26 09:06

learner


1 Answers

Looks to be a known issue. Could you check the link? https://github.com/flutter/flutter/issues/27276

like image 175
L0uis Avatar answered Jun 06 '26 06:06

L0uis