无法解析URL"https://pub.dartlang.org".错误(69):无法“发布升级"颤动工具.五秒钟后重试...(还剩9次尝试) [英] Could not resolve URL "https://pub.dartlang.org". Error (69): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
问题描述
无法解析网址"
此后,请重新打开终端,然后重试.
Could not resolve URL "https://pub.dartlang.org". Error (69): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
that is the error in flutter when i create or upgrade flutter:
This would also mean that flutter might not be able to connect to your device if you're trying flutter run onto an Android device.
The solution for this would be to change the DNS address of your network to 8.8.8.8(Google's DNS) or any other address:
MacOSX:
Open "System Preferences"
Click on "Network"
Select the network which your computer is connected and click on "Advanced"
Select "DNS", Select the "+" button, type "8.8.8.8" (Google's DNS) or if you prefer OpenDNS, "208.67.222.222"
Select "Ok" and "Apply"
Windows & Linux: https://developers.google.com/speed/public-dns/docs/using
After this reopen the terminal and try again.
这篇关于无法解析URL"https://pub.dartlang.org".错误(69):无法“发布升级"颤动工具.五秒钟后重试...(还剩9次尝试)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!