gpt4 book ai didi

android - 在 Ubuntu PC 上下载 android SDK

转载 作者:行者123 更新时间:2023-12-04 18:51:59 25 4
gpt4 key购买 nike

我确实根据放置在 SDK 中的 SDK Readme.txt 运行了以下命令:

$tools/android update sdk --no-ui 

但我收到以下错误:

刷新来源:
Fetching https://dl.google.com/android/repository/addons_list-2.xml
Failed to fetch URL https://dl.google.com/android/repository/addons_list-2.xml, reason: Unknown Host dl.google.com
Fetched Add-ons List successfully
Refresh Sources
Fetching URL: https://dl.google.com/android/repository/repository-10.xml
Failed to fetch URL https://dl.google.com/android/repository/repository-10.xml, reason: IO Unknown Host dl.google.com
Refresh Sources:
Fetching URL: https://dl.google.com/android/repository/repository-10.xml
Failed to fetch URL https://dl.google.com/android/repository/repository-10.xml, reason: IO Unknown Host dl.google.com
Refresh Sources:
Fetching URL: https://dl.google.com/android/repository/repository-10.xml
Failed to fetch URL https://dl.google.com/android/repository/repository-10.xml, reason: IO Unknown Host dl.google.com
Refresh Sources:
Fetching URL: https://dl.google.com/android/repository/repository-10.xml
Failed to fetch URL https://dl.google.com/android/repository/repository-10.xml, reason: IO Unknown Host dl.google.com

如果我尝试使用 Android-Studio->SDK Manager 执行相同操作,我会在消息框中收到相同的错误。

这是因为没有代理设置吗?

最佳答案

听起来确实像代理或其他网络问题。尝试使用 ping dl.google.com ping 该地址.你应该得到类似的东西:

PING dl.l.google.com (216.58.219.110) 56(84) bytes of data.
64 bytes from mia07s25-in-f14.1e100.net (216.58.219.110): icmp_req=1 ttl=47 time=35.2 ms
64 bytes from mia07s25-in-f14.1e100.net (216.58.219.110): icmp_req=2 ttl=47 time=29.2 ms

直到您使用 Control-C 取消该命令。

关于android - 在 Ubuntu PC 上下载 android SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29890764/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com