Android Studio Setup Wizard (studio64.exe) is not able to fetch some XMLs.
I have set in studio64.exe.vmoptions
-Djava.net.preferIPv4Stack=true
-Dhttp.proxyHost=...
-Dhttp.proxyPort=...
Also tried
-Dhttp.proxyHost=www.google.com
-Dhttp.proxyPort=80
But nothing works and I didn't find anything helpful on google seeming like I'm the only one with that problem.
Details:
Android SDK was installed to C:\Users\*\AppData\Local\Android\sdk
Refresh Sources:
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connection refused: connect
Fetched Add-ons List successfully
Refresh Sources
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: Connect Connection refused: connect
Refresh Sources:
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: Connect Connection refused: connect
There is nothing to install or update.
The following SDK component was not installed: build-tools-21.1.1
I'm using a lot of dev tools without a problem and Android Studio is now the first one with connectivity issues.
The XML files mentioned I can access via browser without a problem.
I had a similar issue when working behind a proxy server on x86 system. Initially the Studio doesn't provide any interface for settings so the following has to be done.
Proxy settings for Android Studio should be made in "other.xml" which resides in "D:\Users\%UserProfile%.AndroidStudio\config\options" (in my system).
To manually set a proxy find "USE_HTTP_PROXY" and make it's value = "true" followed by proper "PROXY_HOST" and "PROXY_PORT" values.
To automatically detect the present proxy settings find "USE_PROXY_PAC" and make it's value = "true".
If you are on Windows, try running Android Studio as Administrator. It solved the problem for me. I am using Android Studio 1.5.1.
EDIT: The problem came up again and this time, it was solved by setting the HTTPS Proxy as well in addition to HTTP Proxy. More details here.
Related
In my android studio 3.0 i am continuously getting this error -
Cannot start internal HTTP server. Git integration, JavaScript debugger and LiveEdit may operate with errors. Please check your firewall settings and restart Android Studio.
after this my gradle sync also failed stating the error -
Gradle sync failed: Could not connect to server [a3ea2c7d-cc16-4af2-82a9-037277903c02 port:49555, addresses:[/127.0.0.1]]. Tried addresses: [/127.0.0.1].
One thing to note down that this gradle sync failed when it(gradle) is connecting to gradle daemon.
i have tried all the options from stack overflow like netsh winsock reset etc.
But nothing work for me.
Also to mention i do not use embedded JDK in AS. I have provided it my downloaded jdk8.
How to solve this problem.
Thanks in advance.
Make sure your machine is connected to the internet.
Check the link here: Configure Android Studio - Proxy
I personally recommend that you try disabling the proxy if it is enabled.
Go to Windows Firewall -> Inbound & Outbound Rules -> add java.exe from JDK path & studio.exe from Android Studio directory.
Recently I started learning the libgdx library and wanted to give it a try on Android Studio.
I followed up some tutorials found on different websites. The problem is when gradle sync starts, it gives an error:
Gradle sync failed: Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
I m not behind any proxy. I tried to disable firewall, enable offline / online gradle sync with the offline folder, forced the sdk to download with http instead of https, changed the distributionUrl into http and changed the distribution url aswell.
Nothing worked.
I don't really know if it is a coincidence or not but when I try to launch the standalone SDK, it gives this error when trying to fetch url saved in the SDK update sites:
Failed to fetch URL https://dl.google.com/android/repository/repository-11.xml, reason: HttpHostConnect Connection to https://dl.google.com refused
Thank you.
Try to do that:
Android SDK Manager > Tools > Options
Check "Force https://...
sources to be fetched using http://..."
Not able to update Android SDK Manager !!!
I am working behind the corporate proxy. Where Proxy setting is done using a script. I have checked the script and found that for my domain proxy setting made as "DIRECT".
Now in this condition, when I am trying to update SDK Manager, it is not able to update.
Getting error as below .
**
Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xml
Download interrupted: Connection to https://dl-ssl.google.com refused
**
But when I am trying to access https://dl-ssl.google.com/android/repository/repository-10.xml using browser, I am able to get the xml file.
It seems to me that I need to update Tools > Option > Proxy Setting in SDK Manager. but not able to find a way to set up the same in this case (When proxy setting set as DIRECT).
Please help me to set it up and resolve this issue.
Thanks
Ajoy Sinha
If you have issue with SSL you can try following.
Else try to replicate proxy settings of your browser into sdk mangers settings.
I'm new On android studio. I Install last version of Android Studio and give the path of existing SDK folder path that I know they works on another PC of mine with android Studio.
but it wont start and on downloading component screen give me this error and exit.
Refresh Sources:
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Unknown Host dl-ssl.google.com
Fetched Add-ons List successfully
Refresh Sources
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: IO Unknown Host dl-ssl.google.com
Refresh Sources:
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: IO Unknown Host dl-ssl.google.com
There is nothing to install or update.
The following SDK component was not installed: build-tools-21.1.
so after this message shown, setup closes.
I finally solved the problem with the help of a friend.
The problem was with proxy and I need to set proxy mode in settings of android studio before running it.
The settings was:
You must find:
C:\Users\%USERPROFILE%\.AndroidStudio\config\options\others.xml
find USE_PROXY_PAC and then change value to "true". then turn on your proxy app and set the system to use proxy. and then run installer as Administrator and all components will install.
I've a big problem on my SDK Manager I got this this message :
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xml
Done loading packages.
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Unrecognized Windows Sockets error: 10107: create
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-10.xml, reason: Socket Unrecognized Windows Sockets error: 10107: create
Done loading packages.
I know that there's a lot the questions like mine but I've tried all the solutions like adding a proxy server to the SDK Manager and to the Eclipse and to the Java from the control panel, in addition I've checked :
Force https://... sources to be fetched with http://...
But nothing worked for me, please help me guys by the I'm using :
Windows 8.1 x64
Android bundle with revision : 20140702
And thanks to every one!
I had the same exact problem as yours and I just solved it by disabling the Public Inbound Rule on Windows Firewall for Java(TM) Platform SE binary.
WFN1.9.2.9 then popped up its Notifier upon attempting to start Android SDK Manager, I allowed, and then everything proceeded as normal.
While On The SDK Manager panel, click on the TOOLs Menu,
then "Proxy settings" and Type in the: Proxy Server and Proxy Port in Here.
Make Sure The Proxy Port Matches the One You Use in Your Browser.
Hope That Solves Your Problem. it worked for Me. :-)
Try pinging dl-ssl.google.com (173.194.72.136)
This worked for me when I got "BAD MAC" issues and it wouldn't complete downloads.