[✓] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] Connected device (1 available)
• No issues found!
dani@DanielRodriguezs-MacBook-Pro my_rents % flutter pub upgrade
Resolving dependencies...
It looks like pub.dartlang.org is having some trouble.
Pub will wait for a while before trying to connect again.
Got socket error trying to find package flutter_google_places at https://pub.dartlang.org.
使用flutter upgrade
:
Building flutter tool...
Got socket error trying to find package completion at https://pub.dartlang.org.
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
2天前它还工作得很好
4条答案
按热度按时间68bkxrlz1#
您可能没有连接到Internet
溶液:
检查您是否已连接到Internet。
注意:如果问题仍然存在,请检查您没有安装防病毒程序或VPN来阻止加载包。
q5lcpyga2#
禁用防病毒软件或排除以下Web URL
在Avast for Mac中,您可以在此处执行此操作
b91juud33#
我的问题只是因为网络连接慢,当我切换网络的时候,添加了依赖项。我删除了软件包,并在两个网络上再次添加它,只是为了测试理论,它在更快的网络连接上工作。
rm5edbpk4#
删除Bitdefender修复了我的问题,但它可能与其他防病毒/防火墙有关。在我的情况下,这是一个公司的笔记本电脑,所以我不能确定其他安全层可能会影响这一点