2
votes

When I had previously setup flutter, all was working well, however, now all of the flutter commands are resulting in this error:

Error: Error when reading '../../../../documents/flutter/bin/cache/dart-sdk/bin/snapshots/pub.dart.snapshot': No such file or directory Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (1 tries left) Command 'pub upgrade' still failed after 10 tries, giving up.```

How do I solve this?

1
connect your computer to the Internet - seems it tries to upgrade your flutter installation - pskink
It is connected to the internet and I've tried it several times. Is there anything else I can try? @pskink - SK7
hmmm, If London is not in China behind the Great Firewall, then I have no idea... - pskink

1 Answers

1
votes

Looks like something went wrong while downloading the dart sdk. Can you delete the cache folder inside bin and then run flutter doctor again? What's the output?

Are you by any chance behind a firewall (or using a proxy) that might be blocking the download of the dart sdk?