19

How can I download android sdk package behind a server proxy?

2
  • removed salutation: ", thanks in advance.", don't do it next time May 17, 2015 at 13:53
  • If you set a system wide proxy, you don't need to do anything. Feb 25, 2016 at 12:58

5 Answers 5

23

Select Option

Edit your Proxy Settings Appropriately be setting it as show  below

you can see the proxy setting from IE if you are using windows for linux it is different

5
  • Yes right, it right there, I did not notice that :)
    – Phuong
    Oct 29, 2015 at 6:51
  • 4
    And if proxy wants username and password❓
    – deostroll
    Jan 12, 2016 at 11:10
  • The proxy settings are already set elsewhere,that includes the username and the password.You have to manually configure the proxy settings for your organization.The sdk manager will ask for the username and password and you have to enter them. Jan 13, 2016 at 13:25
  • After exit, I need to re-configure it. This configuration not saved in my MacOS machine. Feb 25, 2016 at 12:56
  • @deostroll if proxy asks for username and password,just set them Feb 29, 2016 at 8:11
23

On Linux or OSX create or edit the ~/.android/androidtool.cfg file. Add the following settings with your proxy server details:

http.proxyHost=127.0.0.1
http.proxyPort=8080

After you've added the settings start <sdk root>/tools/android sdk

The SDK manager will ask for your proxy userId / password.

2
  • Same method can be applied to Windows machines. Look for the files in %USERPROFILE%\.android\androidtool.cfg Oct 14, 2014 at 7:42
  • 1
    Excellent! Works! Also for set force http... you need to set this: sdkman.force.http=true. Feb 25, 2016 at 12:54
5

The SDK downloader does have proxy settings. You can go to Tools > Options to find the settings with ubuntu.

0
1

If you start the SDK manager manually, rather than from Eclipse, there is a Settings menu which contains proxy options. See https://stackoverflow.com/a/2204065/385478

2
  • run <path-to-android-sdk>/tools/android Apr 3, 2012 at 13:06
  • That's what i have by doing that link Apr 3, 2012 at 13:12
0

Installation of android SDK (on windows 7 with proxy authetication)

Steps: How to set proxy for android sdk manager?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.