Got socket error trying to find package watcher at https://pub.dartlang.org. pub get failed (server unavailable) -- attempting retry 1 in 1 second... Got socket error trying to find package watcher at https://pub.dartlang.org. pub get failed (server unavailable) -- attempting retry 2 in 2 seconds... Got socket error trying to find package test at https://pub.dartlang.org. pub get failed (server unavailable) -- attempting retry 3 in 4 seconds...
Asked
Active
Viewed 3,812 times
2
-
You can check your internet connection for pc first. if its pinging correctly then it should work – Hardik Mehta Aug 12 '22 at 07:29
1 Answers
1
- Restart your router! Works for me several times.
- Make sure your network is not behind a proxy
- Make sure you can ping to pub.dev without any packet loss
- Try to close all of your dart.exe processes before retying to perform the flutter pub get
- Try to delete an existing package from your pubspec.yaml and re-get it to see if it works
- Try to manually add the package to your project