Android SDK proxy settings in LINUX

I am trying to install the Android SDK in Ubuntu for my working firewall, and I get the message "failed to connect to dl-ssl.google.com". This is a known issue, but every solution I see includes proxy settings and the choice of force http option. It seems like it's just in windows, however I would like to know how to do the same in LINUX. I can set the eclipse proxy settings, but I do not think that this will be used by the Android sdk manager. Is there a configuration file somewhere?

Thanks in advance.

Mark

+8
android ubuntu proxy
source share
5 answers

The solution was to configure the local proxy server to authenticate and create the ~ / .android / androidtool.cfg file to redirect android to the local proxy server as follows.

### Settings for Android Tool #Tue Jun 12 01:34:55 PDT 2012 http.proxyPort=3128 sdkman.monitor.density=108 http.proxyHost=127.0.0.1 sdkman.show.update.only=true sdkman.ask.adb.restart=false sdkman.force.http=true sdkman.show.updateonly=true 

This file may already exist with elements such as

 http.proxyPort= http.proxyHost=127.0.0.1\:3128 

For me, this did not work until I changed it to the form shown above:

 http.proxyPort=3128 http.proxyHost=127.0.0.1 
+36
source share

Just to help someone out there.

I was able to use the SDK manager with proxy settings by doing the following procedure

  • Goto Shell (Ctrl + Alt + T for ubuntu)
  • Run "android" from the sdk \ tools directory. (example / mySDKDir / tools / android)
  • This will launch the SDK manager. In the main menu, go to Tools → Settings to configure proxy settings.
  • Select the appropriate packages and download / install. The SDK manager will use the specified proxy settings.

Hi

+7
source share

If you run this command:

 export HTTP_PROXY=http://my_proxy:port/ 

in the shell before running android or eclipse , SDK tools must comply with this.

If you want it to take effect on an ongoing basis, add the above line to ~/.bashrc .

+3
source share

I managed to edit the ~ / .android / androidtool.cfg file with my actual proxy information, except for the fact that I had to use the IP address of my proxy server (Worked) and not the host name (does not work), It seems that Android SDK Management on Linux cannot resolve names.

+1
source share

I copied android androidtool.cfg windows settings to linux file and worked fine

+1
source share

All Articles