Not able to update Android SDK Manager - android

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.

Related

Libgdx Android Studio proxy issue

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://..."

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 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.

Error Installing Android SDK Platform Tools

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.

Categories

Resources