2
votes

After getting Flutter on Windows, when I run flutter doctor the following error is coming

Got TLS error trying to find package archive at https://pub.dartlang.org. Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...

4

4 Answers

1
votes

Try deleting the "cache" folder in your Flutter "bin" folder. I had a similar issue with updating Flutter and that solved my problem.

1
votes

I had the same problem and I solved it by removing my current flutter folder and by cloning flutter from the "master" branch.

git clone -b master https://github.com/flutter/flutter.git

After that, you can run flutter doctor normally.

Note: Make sure your antivirus and firewall are disabled

0
votes

I too was facing the same error, then I deleted flutter from my computer and I installed it from Android Studio. After then, The Installation was Successful. Try this way.

0
votes

Try disabling any antivirus.it worked for me.