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.
Related
I cannot install app compat v7 library. I am following the instructions given at https://developer.android.com/tools/support-library/setup.html
Strangely, instructions from above link used to work on my old system. I open SDK manager, select Android Support Library, accept licence and install. But I get the following error.
Any suggestions appreciated (I spent several hours trying to figure this out)
Downloading Android Support Library, revision 20
Download interrupted: Connection to http://127.0.0.1:5050 refused
Done. Nothing was installed.
EDIT
#SilentKnight #alijandro #Anggrayudi H
I restarted the system. Turned off windows firewall (I donot have anti-virus). Started the SDKManager and tried installing. Again the same problem. Reviewing SDKManager log, I see following error messages (which came up when SDK Manager was started). I manually open all these error links on the web and I do see those files. However SDK Manager is not fetching them when it is first started and hence cannot install the app compat. Any idea on why SDKManager is able to fetch some files but not some other
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connection to http://127.0.0.1:5050 refused
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-10.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: HttpHostConnect Connection to http://127.0.0.1:5050 refused
Fetching URL: http://dl-ssl.google.com/android/repository/addon.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/addon.xml, reason: HttpHostConnect Connection to http://127.0.0.1:5050 refused
Fetching URL: http://dl-ssl.google.com/android/repository/addon-6.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/addon-6.xml/addon.xml, reason: HttpHostConnect Connection to http://127.0.0.1:5050 refused
Fetching URL: http://dl-ssl.google.com/glass/gdk/addon.xml
Failed to fetch URL http://dl-ssl.google.com/glass/gdk/addon.xml, reason: HttpHostConnect Connection to http://127.0.0.1:5050 refused
Fetching URL: http://dl-ssl.google.com/android/repository/extras/intel/addon.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/extras/intel/addon.xml, reason: HttpHostConnect Connection to http://127.0.0.1:5050 refused
In your Android SDK Manager setting menu, Tool -> Options -> Proxy Settings, make sure HTTP Proxy Server and HTTP Proxy Port are empty.
Then in you SDK Manager setting menu, Packages -> Reload. It will fresh and update the data again for you.
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.
when I try to view website for the first time in a day using web browser, it redirects to corporate's proxy SSO login, and after logging in I am able to view all websites normally. In Eclipse I have set the network connection settings Active Provider to Native, and the install new software is able to retrieve update sites and working properly.But When I launch the SDK manager from eclipse it is not able to find the host of repository. getting the following errors:
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Unknown Host dl-ssl.google.com
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: IO Unknown Host dl-ssl.google.com
I dont know the proxy details as it is set by some script in corporate environment.
I am able to view the repository-10.xml in browser and have managed to download the archive files for platform, system image.
when launched independently the emulator shows no errors but when i try to launch a specific avd configuration the program doesnt respond and terminates.
through eclipse the emulator is showing the following error:
Is it possible to configure android sdk with eclipse just downloading required files manually or it should be downloaded only through sdk manager?
how to make sdk manager to pick the internet connection that eclipse is already able to pick it...?
I am using adt-bundle-windows-x86_64-20140702 SDK bundle,
android-19_r03 in platforms folder,
having sys images in multiple places both zipped and unzipped. dont know exactly where to have it.
UPDATE:
Somehow managed to get the proxy details that I should be using in my network. and setting up the proxy details in SDK Manager tools resolved the issue of connecting SDK Manager to repository. but still need to make the environment up and running. The SDK Manager connects and lists all the packages available for installation. but i am not able to see system images in that list. in repository-10.xml system images details are available.
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.
I have downloaded eclipse, the android SDK starter package, and installed the "Developer Tools." Following the guide on developer.android.com exactly. After the developer tools have installed, and eclipse restarts I get two error messages:
1: "SDK Platform Tools component is missing!
Please use the SDK Manager to install it."
So, I go in eclipse under Windows > Android SDK Manager and while trying to fetch the files it brings up the sdk manager log with the following:
Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Invalid argument: connect
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml, reason: Invalid argument: connect
Done loading packages.
Because of this error I cannot use the SDK Manager to install it. Any ideas on how to fix this?
2: "Failed to initialize Monitor Thread: Unable to establish loopback connection."
No idea what this one means.
Any help would be greatly appreciated. I have spent a few hours googling trying to find fixes but nothing seems to work, or the fixes refer to a non-existent "settings" window.
You might have to set the SDK installation path yourself somewhere in eclipse. Look out for such problems!!
This could be a proxy which is not allowing SDK manager to fetch the add-on list. You could try to put in an exception for this url and try again.
Adding an exception had worked for me earlier.