Slow SDK download through Android SDK manager
AndroidSdkDownloadAndroid BuildAndroid Problem Overview
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?
Android Solutions
Solution 1 - Android
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.
Solution 2 - Android
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
Solution 3 - Android
Try disabling antivirus and enabling Force https://... sources to be fetched using http://...
in Android SDK Manager's Tools-> Options...
.
This helped me.
Solution 4 - Android
Unchecking the https box worked for me.
Solution 5 - Android
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
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 snapshot
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
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! :)
Solution 6 - Android
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][1]][1] STEP 2- Check the Component you want to download [![enter image description here][2]][2] STEP 3- Then click on install 1 package [![enter image description here][3]][3] [![enter image description here][4]][4] STEP 4- Click on stop button [![enter image description here][5]][5] 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][6]][6] 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][7] [![enter image description here][8]][8] STEP 7 - A file will be downloaded automatically [![enter image description here][9]][9] 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][10]][10] [![enter image description here][11]][11] STEP 9- Now go to android SDK manager and check the component again and click on install 1 package [![enter image description here][12]][12] STEP 10- The package will be installed automatically [![enter image description here][13]][13] [![enter image description here][14]][14] [1]: http://i.stack.imgur.com/f2wJm.png [2]: http://i.stack.imgur.com/qbBVz.png [3]: http://i.stack.imgur.com/7onuN.png [4]: http://i.stack.imgur.com/1F99P.png [5]: http://i.stack.imgur.com/l3FeP.png [6]: http://i.stack.imgur.com/pri9x.png [7]: https://dl.google.com/android/repository/android-23_r01.zip [8]: http://i.stack.imgur.com/B3Hiw.png [9]: http://i.stack.imgur.com/waXWc.png [10]: http://i.stack.imgur.com/Qm1RY.png [11]: http://i.stack.imgur.com/N9YYU.png [12]: http://i.stack.imgur.com/gKWDM.png [13]: http://i.stack.imgur.com/pNGBy.png [14]: http://i.stack.imgur.com/KZi8m.png
Solution 7 - Android
After working on this for weeks and trying all the above plus other suggestions around the web, I came up with the following solution:
-
Remove PC Tools Firewall Plus
-
Remove AVG free antivirus
-
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.
Solution 8 - Android
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.
Solution 9 - Android
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
Solution 10 - Android
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!