Flutter doctor command but nothing happen
3,077
Solution 1
If on Windows and flutter doctor is not responding , it means it needs administrative privileges. Just go to search bar , find Command prompt and run it as administrator. That should do.
Solution 2
try to run command : flutter
maybe you get some error, and fix it.
i also get error:
The term 'Unblock-File' is not recognized as the name of a cmdlet, function, sc
ript file, or operable program. Check the spelling of the name, or if a path wa
s included, verify that the path is correct and try again.
At line:1 char:13
+ Unblock-File <<<< -Path 'C:\src\flutter/bin/internal/update_dart_sdk.ps1'; &
'C:\src\flutter/bin/internal/update_dart_sdk.ps1'
+ CategoryInfo : ObjectNotFound: (Unblock-File:String) [], Comman
dNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Flutter requires PowerShell 5.0 or newer.
See https://flutter.dev/docs/get-started/install/windows for more.
Building flutter tool...
Running pub upgrade...
The current Dart SDK version is 2.1.0-dev.9.4.flutter-f9ebf21297.
Because flutter_tools requires SDK version >=2.2.2 <3.0.0, version solving
failed.
and i fix it.
Solution 3
Without sounding silly, are you connected online? This happens to me when I'm disconnected from the Internet.
Also, what happens when you do this?
> flutter upgrade
Does it still lock up then, or does it actually check the version before eventually continuing and running flutter doctor?
Author by
jiahong.dong
Updated on December 06, 2022Comments
-
jiahong.dong over 1 year
I use a MacBook Pro and install flutter, but when I type
flutter doctor
, it doesn't respond (about 10 minutes passed).this issue same to me, but I don't install Mamp software.
-
jiahong.dong almost 6 yearsI do what i can do, but useless! ”reinstall system“ it work!
-
Bob Small over 3 yearsThat did not work for me. Same issue. Dart SDK blows up as soon as I run any Flutter commands
-
Eddie Eddie Eddie over 3 years@BobSmall, what version are you on (
flutter --version
)? Are you able to reinstall flutter, or download the latest version (go to directory above where flutter is installed and executinggit clone https://github.com/flutter/flutter.git
)? -
Bob Small over 3 years@Eddie Eddie Eddie. Flutter 1.22.4 • channel stable • github.com/flutter/flutter.git Framework • revision 1aafb3a8b9 (13 days ago) • 2020-11-13 09:59:28 -0800 Engine • revision 2c956a31c0 Tools • Dart 2.10.4