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.
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?
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.
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.
如果在 Windows 上尝试打开任务管理器并结束/终止所有 dart.exe 进程,则可能是 flutter doctor 正在等待另一个 dart.exe 进程完成该进程,无论出于何种原因都没有完成
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.