Mac Flutter Doctor错误“版本解决失败”

时间:2018-09-22 08:38:56

标签: flutter

当我尝试安装Flutter时遇到问题。 这是日志。 帮我个忙。

~flutter doctor
Downloading Dart SDK from Flutter engine 58a1894a1cd798de2f9a206f157a90d45944028b...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 93.6M  100 93.6M    0     0  7212k      0  0:00:13  0:00:13 --:--:-- 6959k
Building flutter tool...
Because flutter_tools depends on file 5.0.6 which doesn't match any versions,
  version solving failed.
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)

1 个答案:

答案 0 :(得分:0)

问题出在pubspec.yaml文件中。依赖文件5.0.6不存在,请像这样仔细检查您的pubspec.yaml是否已正确输入依赖项

file: ^5.0.6

否则,如果问题仍然存在,请尝试降级为5.0.5。