通过Android SDK管理器下载SDK速度慢

发布于 2024-11-16 12:25:45 字数 109 浏览 7 评论 0原文

当我运行Android SDK管理器下载SDK平台时,下载速度为8 KiB/s。像Android 2.2、API 8这样的平台下载需要2个多小时。通过浏览器下载东西是没有问题的。有谁知道如何解决这个问题?

When I run Android SDK manager to download SDK platform, the download speed is 8 KiB/s. It would take more than 2 hours to download one platform like Android 2.2, API 8. There is no problem with download stuff through browser. Does anyone know how to fix this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

樱桃奶球 2024-11-23 12:25:45

我没有遇到过这个问题。强制或取消强制 HTTPS(“设置”下有一个选项),看看这是否可以提高连接质量。

I have not experienced this issue. Force or unforce HTTPS (there is an option for this under Settings), and see if this improves the quality of your connection.

冷…雨湿花 2024-11-23 12:25:45

我也遇到了这个问题,在网上找到了解决方案,目前看来可行。我尝试强制使用 HTTP 和 HTTPS,但没有任何效果。

因此,请尝试以下操作:

1.) 以管理员身份运行命令提示符 - Windows 7(开始 -> 右键单击​​命令提示符 -> 选择“以管理员身份运行”)或“开始”,在搜索框中输入 CMD,然后右键单击并选择“以管理员身份运行”。

2.) 在命令提示符窗口中输入:

netsh

并按 ENTER

3.) 然后编写此内容并在最后按 ENTER:

interface tcp set global autotuning=disabled

4.) 现在重新启动您的 SDK 管理器并尝试再次下载!


执行上述操作之前,记下您的原始值,以防您想恢复:

interface tcp show global

I also have this problems and found a solution online and it looks like it working for now. I tried with forcing HTTP AND HTTPS and nothing really work.

So try this:

1.) Run command prompt as an administator - Windows 7 (Start->Right click on Command Prompt-> Choose "Run as Administrator") or "Start" enter CMD into search box and then right click and "Run as administrator".

2.) In Command Prompt window enter:

netsh

and press ENTER

3.) Then write this and hit ENTER at the end:

interface tcp set global autotuning=disabled

4.) Now restart your SDK manager and try to download again!


Before doing the above, Take note of your original value in case you want to revert back:

interface tcp show global
最偏执的依靠 2024-11-23 12:25:45

尝试在 Android SDK Manager 的 Tools-> 中禁用防病毒软件并启用强制使用 http://... 获取 https://... 源选项...

这对我有帮助。

Try disabling antivirus and enabling Force https://... sources to be fetched using http://... in Android SDK Manager's Tools-> Options....

This helped me.

黄昏下泛黄的笔记 2024-11-23 12:25:45

取消选中 https 框对我有用。

Unchecking the https box worked for me.

喵星人汪星人 2024-11-23 12:25:45

检查那些 XML 文件链接
检查那些 Xml 文件链接

让我把它们写在这里...

所有 Android API 的 SDK 的 Google 存储库

适用于所有 Android API 的 Google 插件存储库 (Google API)

适用于 Android 的英特尔 API

Google 系统映像存储库

系统映像的 MIPS 存储库

英特尔系统映像存储库

现在您将知道必须做什么请注意...

以此快照为例说我想下载适用于 Android API12 的 google API

说我想要下载google API for Android API12

然后 Google Repository for Add-on(Google API) Android API
标记下查找 标记,如下面的示例所示

Look up for the sdk:url tag

然后使用用于获取 XML 文件的链接

去掉最后一部分并将其替换为 标记内容

,例如:在本例中,它将类似于

Google API for Android API 12 (HoneyComb)

那里有一个下载链接....

同样可以下载 SDK 的系统映像....

不必等待很长时间才能完成该列表;)为您提供下载加速,使用 DAP 或 IDM(下载加速器)

享受吧! :)

Check those XML file links
Check those Xml file links

Let me pen them down here...

Google Repository for SDK's Of all Android API

Google Repository for Add-on's (Google API's) for all Android API

Intel API's for Android

Google repository for system Images

MIPS repository for system images

Intel repository for system images

Now you will know what you must be looking out for....

Take an example of this snapshotSay i want to download google API for Android API12

Say i want to download google API for Android API12

then Google Repository for Add-on's (Google API's) for all Android API
Lookup for <sdk:url> tag under <sdk:addon> tag as given in the example below

Look up for the sdk:url tag

and then use the link used to obtain the XML file

Strip off the last part and replace it with the <sdk:url> tag content

for eg: in this case it would be like

Google API for Android API 12 (HoneyComb)

there you have a download link....

Similarly SDK's ,System-images can be downloaded....

Dont have to wait for ages to complete that list ;) for you download to get accelerated use DAP or IDM ( download accelerators )

Enjoy! :)

萌化 2024-11-23 12:25:45

您可以手动下载并安装Android SDK组件。

方法:

第 1 步- 转到 android SDK 安装文件夹(“C:\Users\%username%\Appdata\Local\Android\android-SDK”或您在安装过程中选择的任何其他位置)然后打开安卓SDK管理器
输入图片此处描述
第 2 步- 检查您要下载的组件
输入图片此处描述
第 3 步- 然后点击安装 1 个软件包
输入图片此处描述
输入图片此处描述
第 4 步- 单击停止按钮
输入图片此处描述
第 5 步- 导航到 android SDK 安装文件夹,然后转到 temp ("C:\Users\%username%\AppData\Local\Android\android-sdk\temp") 文件夹,在这里您将看到两个创建文件复制设置信息文件的名称
输入图片此处描述
第 6 步- 转到网络浏览器并输入网址 https://dl .google.com/android/repository/(您复制的文件名称)
就我而言 https://dl.google.com/android/repository/android -23_r01.zip
输入图片此处描述
STEP 7 - 将自动下载文件
输入图片此处描述
第8步-下载完成后,转到“C:\Users\%username%\Appdata\Local\Android\android-sdk\temp”并删除在那里创建的两个文件并粘贴下载的文件那里
输入图片此处描述
输入图片此处描述
第 9 步- 现在转到 android SDK 管理器并再次检查组件,然后单击“安装 1 个包”
输入图片此处描述
第 10 步- 该软件包将自动安装
输入图片此处描述
输入图片此处描述

You can manually download and install Android SDK Component.

Method:

STEP 1- Go to android SDK installation folder("C:\Users\%username%\Appdata\Local\Android\android-SDK" or any other location you choose during installation) then open android SDK manager
enter image description here
STEP 2- Check the Component you want to download
enter image description here
STEP 3- Then click on install 1 package
enter image description here
enter image description here
STEP 4- Click on stop button
enter image description here
STEP 5- Navigate to android SDK installation folder then go to temp ("C:\Users\%username%\AppData\Local\Android\android-sdk\temp") folder here you will see two files are created copy the name of the set up information file
enter image description here
STEP 6- goto web browser and type url https://dl.google.com/android/repository/(file name you copied)
in my case https://dl.google.com/android/repository/android-23_r01.zip
enter image description here
STEP 7 - A file will be downloaded automatically
enter image description here
STEP 8- After download is finished go to "C:\Users\%username%\Appdata\Local\Android\android-sdk\temp" and delete the two files created there and paste the downloaded file there
enter image description here
enter image description here
STEP 9- Now go to android SDK manager and check the component again and click on install 1 package
enter image description here
STEP 10- The package will be installed automatically
enter image description here
enter image description here

明月松间行 2024-11-23 12:25:45

经过几周的努力,并尝试了上述所有方法以及网络上的其他建议,我想出了以下解决方案:

1) 删除 PC Tools Firewall Plus

2) 删除 AVG 免费防病毒软件

3) 免费安装 Comodo Internet Security。

文件现在正在下载和安装。我也按照建议使用 HTTP 模式。如果您有上述任何安全工具,我建议您尝试一下。顺便说一句,关闭 PC Tools 是不够的。

After working on this for weeks and trying all the above plus other suggestions around the web, I came up with the following solution:

1) Remove PC Tools Firewall Plus

2) Remove AVG free antivirus

3) Install Comodo Internet Security Free.

The files are downloading and installing fine now. I'm also using HTTP mode as suggested. If you have any of the above security tools I recommend giving this a try. BTW, turning off PC Tools will not be enough.

乱世争霸 2024-11-23 12:25:45

这里列出的其他解决方案都没有为我解决这个问题,甚至没有卸载 Android Studio/SDK 然后重新安装它们。值得注意的是,由于发布了很多此类答案,独立的 SDK 管理器也已被弃用

经过几个小时的故障排除后,我通过将 Android Studio 配置文件夹 (~/.AndroidStudio2.3) 重命名为其他内容并让 Android Studio 再次创建它来解决了该问题。您可以要求 Android Studio 导入旧的 config 并且它仍然有效,因此这可能与 system 文件夹有关。

希望这对遇到此问题但无法像我一样找到解决方案的其他人有所帮助。

None of the other solutions listed here resolved the issue for me, not even uninstalling Android Studio/SDK and then reinstalling them. It's worth noting that the standalone SDK Manager has also been deprecated since a lot of these answers were posted.

After hours of troubleshooting, I managed to resolve the issue by renaming my Android Studio config folder (~/.AndroidStudio2.3) to something else and making Android Studio create it again. You can ask Android Studio to import your old config and it still works, so it's likely something to do with the system folder.

Hope this helps anyone else that is having this issue but was unable to find a solution like myself.

℡寂寞咖啡 2024-11-23 12:25:45

我遇到了同样的问题,而且谷歌不允许我访问andriod,我必须使用VPN连接。所以我将需要的所有 xml 和包下载到本地主机,并将 dl-ssl.google.com 也设置为 127.0.0.1,然后以额外的速度从本地安装它们:D

I had the same problem plus google don't allow me to access andriod, and I must connect with a VPN. so I download all xmls and package that I need to my localhost and set dl-ssl.google.com too 127.0.0.1 and then I install them from my local with extra speed :D

过度放纵 2024-11-23 12:25:45

我也遇到了这个问题,在网上找到了解决方案,目前看来可行。我尝试强制使用 HTTP 和 HTTPS,但没有任何效果。

因此,请尝试以下操作:

1.) 以管理员身份运行命令提示符 - Windows 7(开始 -> 右键单击​​命令提示符 -> 选择“以管理员身份运行”)或“开始”,在搜索框中输入 CMD,然后右键单击并选择“以管理员身份运行”。

2.) 在命令提示符窗口中输入(不带引号的所有内容):“netsh”并按 ENTER

3.) 然后编写此内容并在最后按 ENTER:interface tcp set global autotuning=disabled

4.) 现在重新启动您的 SDK 管理器并尝试再次下载!

I also have this problems and found a solution online and it looks like it working for now. I tried with forcing HTTP AND HTTPS and nothing really work.

So try this:

1.) Run command prompt as an administator - Windows 7 (Start->Right click on Command Prompt-> Choose "Run as Administrator") or "Start" enter CMD into search box and then right click and "Run as administrator".

2.) In Command Prompt window enter (everything without quotes): 'netsh' and press ENTER

3.) Then write this and hit ENTER at the end: interface tcp set global autotuning=disabled

4.) Now restart your SDK manager and try to download again!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文