Android SDK Not Updating Packages - android

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.

Related

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

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 IDE set up

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.

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 installation failed - Connection reset. Nothing is installed

Hello I have a problem with installing the packages using the Android SDK Manager.
I get Connection reset. Nothing is installed.
I am on Windows 7 64 bits using JDK 7.
Here is what I tried so far without success:
Installed Android SDK installer_r18-windows.exe
Then run Android SDK Manager as Administrator and I can select which packages I want to install.
So far so good.
Then when I select the packages I want and click Install then the log says:
Downloading SDK Platform Android 2.3.3, API 10, revision 2
peer not authenticated
I googled this error and they say that you need to set Force https://... sources to be fetched using http://....
If I do that and click install I get this error:
Downloading SDK Platform Android 2.3.3, API 10, revision 2
Connection reset
At every package it tries to install.
I tried setting the proxy setting according to my internet providers setting. I get the errors again.
I tried deactivating the firewall. Same errors.
So how do I get the Andoid SDK Manager to install the packages succesfully?.
Thank you for your help.
Others have also faced similar problems when downloadind SDK components.
A simple way to fix this problem is to modify the Pkg.SourceUrl property, changing HTTPS to HTTP to avoid secure downloads, as illustrated in the answer to this question.
I ran into the same problem today. In my case, the download would start and then abort with the same error message.
If the download starts and then aborts, try downloading again - SDK Manager will resume the download where it aborted. It doesn't advertise that feature (let alone resume by itself), but the log entries report that it is in fact resuming the download.
You might need to retry a few times - depending on how stable your Internet connection is and how much you download. Not too elegant, but will do for a quick on-the-fly install.
This may be cause of system time may have changed. Synchronize your system time with one of the internet time servers. Restart the installation. Hope it works.

Categories

Resources