I am behind a proxy and need to set up SDK manager for the android virtual device. But SDK manager is unable to download any os images/SDK updates from the add-on lists probably due to the proxy configuration. The solutions that I have already tried:
- Setting proxy port and host in android config file, or directly in SDK manager
- Creating a squid proxy server and make SDK manager connect to squid server
- Run android.bat as an administrator with proxy settings, username and password in command line
None of this worked and I still do not see the SDK updates or the OS images in the SDK manager. If anyone has some solutions for a similar problem, that would be great.
Yes you can set it in settings
Goto
Also note that some of Antivirus and Firewall may block your connection
Edit
%ANDROID_HOME%/tools/bin/sdkmanager.bat
.Add
-Dhttp.proxyUsername="MyUser" -Dhttp.proxyPassword="MyPass"
on"%JAVA_EXE%"
. I have something like this:Install your packages for the Android SDK, just add
--proxy=http --proxy_host=<proxy_host> --proxy_port=<proxy_port>
. I have something like this:Command Line syntax to use proxy settings