Android: error while installing v7 appcompat (app compat library) - android

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.

Related

Android Studio Failed to fetch - Connection refused: connect

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.

android setup wizard downloading components error

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.

Android SDK Manager fetching failed

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.

Eclipse update failure - ADT 22 installed ok but SDK cant be updated to 22 afterwards

"Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-7.xml, reason: HttpHostConnect Connection to http://dl-ssl.google.com/android/eclipse/:80 refused"
But it's the same for others also like:
"Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connection to http://dl-ssl.google.com/android/eclipse/:80 refused"
Happens when trying to update from SDK v21 to v22. I have already installed ADT 22(double checked).
What should my http proxy server be? I have dl-ssl.google.com/android/eclipse/
and ticked the box "Force https.....http"
I changed http proxy server to to:
https://dl-ssl.google.com/android/repository/repository.xml
and now it completes without errors but doesn't upgrade to v22.
I tried turning off my firewall and VPN(I am in mainland China today) and it's the same.
My environment is Win7(64 bit), jdk 1.6.0_14(32 bit)
Add the following line into the end of the C:\Windows\System32\drivers\etc\hosts:
74.125.237.1 dl-ssl.google.com

Android SDK Not Updating Packages

Running Windows 7. Just installed Android SDK. Trying to get the packages with SDK manager revision 16, but get these errors after about 2 or 3 minutes (very slow):
Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL //dl-ssl.google.com/android/repository/addons_list-1.xml
Reason: Connection to //dl-ssl.google.com refused
Fetched Add-ons List
Successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL //dl-ssl.google.com/android/repository/repository-5.xml
Reason: Connection to //dl-ssl.google.com refused
Done loading packages.
I have no proxy.
I have unchecked the "force https...to http..." setting.
I can get the two URLs to load in IE9.
What am I missing?
Thanks.
SOLUTION: I got the list to finally load. I had my firewall turned off, but the issue was an expired version of Zonelabs software. After I uninstalled Zonelabs, the list of packages loaded and installed.
I got the list to finally load. I had my firewall turned off, but the issue was an expired version of Zonelabs software. After I uninstalled it, the list of packages loaded and installed.

Categories

Resources