2

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 Answers 4

1

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

Sign up to request clarification or add additional context in comments.

Comments

1

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

Comments

0

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.

Comments

0

Try disabling any antivirus.it worked for me.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.