Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slow SDK download through Android SDK manager

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?

like image 423
Peter Avatar asked Jun 21 '11 03:06

Peter


People also ask

How long does Android SDK take to download?

2. Installing "Android Studio IDE" and "Android SDK" Installing Android software is probably the most challenging part of this project. It takes times - from 30 minutes to n hours to forever - depending on your luck, your programming knowledge, and your PC.

How long does it take to update an sdk?

Even with that Android Studio just drags in the dirt when updating the SDK, it takes like an hour to download and install platform components. It's been that way since the beginning, I've never seen The SDK Manager anything but painstakingly slow since way back in the early days of Android.

Do I need to install all sdk in Android Studio?

No, You don't need to install everything. Install the "SDK Platform" for the Android versions you've set as minimum, target, and in-between the minimum & target. The Android SDK Extras are usually not required; but it is useful to be aware of them since they may be required depending on your use case.

How do I only download Android SDK?

You will need to download the Android SDK without Android Studio bundled. Go to Android SDK and navigate to the SDK Tools Only section. Copy the URL for the download that's appropriate for your build machine OS. Unzip and place the contents within your home directory.


2 Answers

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.

like image 147
Matt Esch Avatar answered Sep 16 '22 17:09

Matt Esch


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 
like image 38
StudioArena Avatar answered Sep 17 '22 17:09

StudioArena