Environment Info
Windows 7 Enterprise OS SP 1
Android Studio AI-141.1972460
Build #AI-141.1972460, built on June 1, 2015
JRE: 1.7.0_80 b15 amd64
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
Access to internet is via corporate proxy server
Expected Behavior
Location: Version Control-->Github configuration panel
1.When valid github account and password fields are populated clicking on Test connection button should result in successful connection confirmation to Github.
2.When selecting Share Project on Github project successfully connects and uploads project files.
Problem
Can not share project via Github via Share Project on Github Following error is reported when clicking on Test and when selecting menu option
Error Indicated
Can't login: Connect to api.github.com:443
Additional Details
1.Proxy is correctly configured via Android Studio. SDK, SDK tools and plugins are successfully downloaded.
2.Git commands work successfully from a windows command prompt and via Android Studio's Git Menu Options.
Successful commits, and push via Android Studio work successfully, after first creating repository via Github website.
However via Test button and Share Project on Github menu option fails with the error indicated above.
I understand that this error is indicated when proxy is configured and Github plugin access is not configured for proxy (However I see no way of setting proxy, I assumed that proxy settings are global for all plugins in Android Studio).
Please help me resolve this issue. I using Git menu options so it is not a showstopper but it is still very frustrating.
I entered Bug Report Issue 175831 Android Open Source site
Setting the proxy for Gitgit config --global --add http. proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT. git config --global --add https. proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT.
You can do same in Windows. Add an environment variable 'no_proxy' with value of URLS_to_Ignore. Don't forget to start a new CMD shell. Or to get working in current CMD just set no_proxy=URLS_to_Ignore .
Proxies serve as intermediary connection points between HTTP clients and web servers that add security and privacy to internet connections. To support running Android Studio behind a firewall, set the proxy settings for the Android Studio IDE.
Try setting proxy for git using commands:
git config --global http.proxy http://proxyuser:[email protected]:8080
git config --global https.proxy https://proxyuser:[email protected]:8080
See this for further info.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With