Unable to download SDK components from android.com - android

Running Windows XP, 32 bit.
I had no problem downloading the installer and android-sdk_r10-windows.zip, but when running the installer, it gets stuck opening
https://dl-ssl.google.com/android/repository.xml
When I try browsing to that URL, I get a 404.
I've read some of the other answers suggested, but most either direct me to the sdk download (already done) or mention some obscure command line approach that doesn't seem relevant to a Windows installation.
Thanks for any help!
Dave

First thing to try is to click on the Settings tab and turn on the option to Force https sources to be fetched using http. Then try to refresh the packages.
If that doesn't help are you behind a corporate proxy? If so make sure your proxy server and port are correct in the Settings tab.
If that doesn't work try http://code.google.com/p/android/issues/detail?id=5944#c7 .
And if that doesn't work try Download the Android SDK components for offline install .

Related

Android Studio slow download during setup

I wanted to install Android Studio as I'm new to Android programming but after initial install, it downloads the packages sooooo slowly compared to normal downloads on my home internet.
Things I've tried:
installing packages through the SDK manager but the download speed is the same, reporting 10KB/s.
these old answers: Slow SDK download through Android SDK manager
placing my PC in my routers DMZ
removing my router to directly connect to my modem
other compters
Is there a completely offline install for Android studio, like other software (i.e. Google Chrome)? Then I could use a download manager to get it quickly.
Sometimes the slowness is also related to antivirus.
In my case, Java Platform was doing all the download process in the background when using Android SDK Manager.
If someone is experiencing a slow download, an alternative is forcing Android SDK Manager to use http connection and not https.
The download process itself is really annoying, takes forever anyway as we can notice. There should be mirrors for those files to accelerate this download process.
Disable https AND disable use cache solved the problem for me
Copy the download link
And paste it in chrome's address bar if you have IDM it it will ask you to download it.
Check on "force https" in the SDK Manager settings.
i tried many options. but my speed was limited always.
so i directly download the missing tools from internet (with my max speed possible) and placed it with the installation files.
to know the files missing, i tried to open it without internet connection and it showed me some missing tools. so i manually downloaded it from internet.

Android Studio download cancels every single time

Whenever I try to download android studio for Linux, when last second is left it shows network error. I tried it 5 times and same thing happened. At the last second the download cancels and it shows "unknown network error". I have tried downloading on Windows and Ubuntu but the result was same. I was able to download android studio for Windows without any problem.
Downloading with Chrome on Windows 10 failed 4 times at around 95% Pause/resume dose not help firewall disabling dose not help trying Firefox
Firefox retry works great and resume downloading
just Use Firefox to download this file
There seemed to be a problem in such downloads itself,regardless of the browser or the antivirus and all...
Download it using Internet Download Manager.
press Ctrl+J ->opens downloads folder...
right click on the link which says "https://dl.google.com/dl/android/studio/install/1.0.1/android-studio-bundle-135.1641136.exe" (Encircled in red in the image)
then copy the link address and paste the same in Internet Download Manager.
after 4 hours it still remains at 99.99%...
Pause the download and start again...
This time it completes ..100%
And all the downloaded files get appended to one file.
The actual problem occurs in transferring the downloaded files from cache to your system folder.Resuming the download somehow overrides this.
No need to diable firewall or antivirus in this method.
OR use the zipped download from here and then extract it and run the .exe file yourself.
Downloading with Chrome on Win 7 failed all the time for me. I tried with Firefox, and although it gave the same error, I was able to finish the download with "Retry" button in Downloads in Firefox, because it downloads not from the beginning of the file, but resumes the downloading.
So install Firefox and retry the download until it is finished.
I was running into the same difficulty with Firefox on Ubuntu. Downloading the command via console is what ultimately worked for me:
First, determine the download file URL. This can be found by right-clicking the button which initiates the download, and clicking "Copy Link Location". Mine was the following, but NOTE THAT OVER TIME THE FOLLOWING WILL BECOME OUTDATED, AND YOU SHOULD FIND THE URL YOURSELF; THIS IS JUST AN EXAMPLE:
http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
Having placed this link in my clipboard, I opened up a terminal (Ctrl+Alt+T, or launch the "Terminal" program), navigated to my Downloads folder (cd ~/Downloads), then used wget to download the file:
wget "http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz"
NOTE AGAIN THAT THE ABOVE URL SHOULD BE REPLACED WITH THE CURRENT URL; THIS IS JUST AN EXAMPLE.
wget is a standard linux command that downloads a file from the source URL into the current folder. Anyway, this solved my problem! If, for extra certainty, you want to verify your download, you can use the sha1sum command:
sha1sum android-sdk_r24.4.1-linux.tgz
(You'll need to change the filename above if the version numbers change). This will print the SHA-1 checksum, which the android studio website includes in the page where you select your platform (currently here: http://developer.android.com/sdk/index.html#Other). If the two strings match, then it is extremely likely that your download is a success!
I found the solution!
Disable your firewall
When you are downloading, a minute or two before it finishes, pause the download and resume after 1 minute.
ENJOY. IT WILL WORK JUST FINE!!!
Definitely a Chrome issue, at least the Windows 10 version of Chrome. Using Microsoft Edge or maybe another solves the problem. I used Edge and it downloaded without any pauses or hiccups.
This problem happens when downloading the full kit 'android studio IDE + JDK 7.0', the reason is JDK 7.0 being on another server and it's possible that google server uses proxy settings that blocks traffic when downloading - I am not sure yet.
The only way around it is to dowload 'android studio IDE' only, during the installation you will be given a link and prompted to install JDK 7.0 on Oracle website, so do that as well.
That did the trick.
PS: For anyone suggesting disabling the firewall while connected to the internet for the period of the download, well ..
Just use download accelerator to download ... I used DAP From here
I had same problem with Chrome and Firefox -> the last kb or so refused to download.
Solution was simply to change the name of the downloaded file:
I removed the <.part> from the filename (android-studio-bundle-141.2456560-windows.exe.part) and it worked.
Edit: I have now used Android Studio for several weeks without problem.
I know that this is the old post, but I'm still facing with this issue. The workaround for me was to download zipped version of Android studio from softpedia.com (http://www.softpedia.com/get/Programming/Other-Programming-Files/Android-Studio.shtml#download)
I know that this not helping solving the issue, but might help to download the file.

android SDK manager, only show installed package

There is something wrong with my SDK manager, which only show the installed package. I couldn't install the others.
*I downloaded the ADT bundle for windows from http://developer.android.com/sdk/index.html
Does anyone know why? Thx!
Have you tried running the SDK Manager with Run as Administrator?
It always fails loading or downloading packages for me when it isn't ran as an admin.
I had the same problem and its about proxy issues I think. To solve it: in SDK manager go to
Tools > options
In other section check the below:
force https://... sources to be fetched using http://...
Then it will fetch all the packages!
I often get temporary connection errors on the dl-ssl.google.com repo site. To determine if it's a simple connectivity issue, you could attempt to connect to one of the repo file links via your browser.
This worked for me -
Keep HTTP proxy server and HTTP proxy port empty (from Tools -> option)
and check force https
Manager is unable to load list of packages from repository, probably it's proxy or firewall issue (as I know, it uses standard http). So, it just doesn't know anything about non-installed packages.
Check your internet connection and try again (there is a button "Reload" in the "Packages" menu)
You can download only SDK here: http://dl.google.com/android/installer_r22.0.5-windows.exe
and install all use this.
Check my solution on this issue. You may need to use a Proxy to connect to the internet then attempt your download. See this answer
I believe this should solve your problem, seemingly your having connection issues.

Android SDK Manager gives "Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml" error when selecting repository

I'm trying to install a platform but when I open Android Manager then I click Available Software then select the
https://dl-ssl.google.com/android/repository/repository.xml repository
I get this error:
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml
I have also tried downloading by clicking on force "http:" for all "https:" downloads on settings panel but it still doesn't help.
I'm working on Windows Vista.
Try this solution and it worked. this problem is caused because ADB is unable to connect to the android servers to fetch updates. (If at home try turning off firewall)
Goto Android SDK Manager
c://android-sdk-windows/ open
SDK-Manager
Click Settings - Will be
asked for a proxy.
If have one enter
the IP address and the port number.
If not turn off your firewall.
Check
"Force https://... " (to force SDK Manager to use http, not https)
This should work immediately.
If you enter the URL in a browser and then look at the source code of the page you will see that an XML document is returned.
The reason why that URL would work in a browser but not in the android manager might be that you are required to specify a proxy server. In Eclipse (3.5.2) the proxy settings can be found here: "Window" -> "Preferences" -> "General" -> "Network Connections"
All that was necessary for me, a Ubuntu user, was to change the owner of the ~/.android directory. In a terminal type the following command:
sudo chown -R username:username ~/.android
Obviously, you must replace "username" (twice) with your username.
I wasn't sure if I should post this as an answer because the original poster's question was concerning Windows Vista, not Ubuntu. However I found this post whilst searching for the answer on Ubuntu so I believe it is pertinent. I don't have sufficient reputation to comment on +Maher Gamal's answer, though, which is what lead me to this answer. Hopefully someone else finds it useful!
In Mac OS X, the solution is creating the file androidtool.cfg in our user .android folder and then add this line. Sure it is working also for Linux
sdkman.force.http=true
I hope that helps!
Open Android SDK Manager and open menu Tools->Options
in Proxy Setting Part
Set your proxy and ok
Investigating this error on my new Win 7 laptop, I found my ADT plugin to be missing. By adding this I solved the problem:
Downloading the ADT Plugin
Use the Update Manager feature of your Eclipse installation to install the latest revision of ADT on your development computer.
Assuming that you have a compatible version of the Eclipse IDE installed, as described in Preparing for Installation, above, follow these steps to download the ADT plugin and install it in your Eclipse environment.
Start Eclipse, then select Help > Install New Software....
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK
Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
I am using Kaspersky. I just turned it off and the issue was solved!
I got the solution for the Android Studio installation after trying everything that I could find on the Internet. If you're using Android Studio and getting this error:
Find [Path_to_Android_SDK]\sdk\tools\android.bat.
In my case, it was in C:\Users\Nathan\AppData\Local\Android\android-studio\sdk\tools\android.bat.
Right-click it, hit Edit, and scroll all the way down to the bottom.
Find where it says: call %java_exe% %REMOTE_DEBUG% ...
Replace that with call %java_exe% -Djava.net.preferIPv4Stack=true %REMOTE_DEBUG% ...
Restart Android Studio/SDK and everything works. This fixed many issues for me, including being unable to fetch XML files or create new projects.
I had the same problem: the latest update failed to install because it couldn't
rename the tools folder in android-sdk-windows. I'm using AVG antivirus and
disabling it didn't help, but I don't think it had anything to do with the AV program
anyway.
Fact is, running the Android SDK setup apparently uses items in the
"android-sdk-windows\tools" directory. I'm on Win Vista x32 so maybe that causes some
unique situation - I'm not sure.
Solution:
I made a copy of the tools folder itself (keeping it at the same directory tree
level, thus "tools" and "tools-copy" were both in the "android-sdk-windows" folder).
I ran Android.bat from that copy
I ran the update without problems (it updated the original,
not-being-used-at-the-moment tools folder, among whatever other items it needed to).
I closed the SDK, deleted the folder (I had to kill the adb.exe process first - not
sure why that always persists but you can't delete the folder without doing that).
I restarted the SDK from the normal (now-updated) tools folder. Worked like a charm!
Note that simply killing adb.exe was NOT sufficient to get around the original
issue... only by copying the tools folder and using the copy to run Android for the
duration of the update process was enough to rectify the problem.
I hope this helps others... it's quite vexing to have to spend time resolving basic
issues like this just to run an update.
If you open /Users/{your name}/android sdks/tools/android (double click it), then click on "Android SDK Manager" menu and then "Preferences" and then you can change your proxy settings specifically for Android SDK Manager. These proxy settings also apply to "Android SDK Manager" if used within Eclipse.
After 7 long hours of searching I finally found the way!!
None of the above solutions worked, only one of them pointed towards the issue!
If you are on Win7, then your Firewall blocks the SDK Manager from retrieving the addon list.
You will have to add "android.bat" and "java.exe" to the trusted files and bingo! everything will start working!!
I had the same problem, made all the workarounds you advised: still the same error.
I updated Eclipse via "Help / Check for updates" and now everything is ok.
This update brought a completely new version of the Android SDK Manager.
Also, try to turn off your firewall and try to update with link.
I had the same problem. I use Ubuntu 12.04. I tried disabling ipv6.
Modify the /etc/sysctl.conf and add the following:
#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Then restart the machine and check. I think this may be a ipv6 issue even in Windows OS.
I had a similar situation where I had the proxy settings already set and the SDK manager wasn't able to modify them permanently. Modifying manually the ~/.android/androidtool.cfg file fixed the issue.
Had the same issue on 64 bit win7 machine on company network behind proxy with automatically detected settings.
After a number of trials and failures the following workaround proved to be successful:
sharing my phone's wifi internet connection via USB
Best regards,
Robert
I found another way without setting proxy. I'm currently using an antivirus which has a firewall program. Then, I turn off this firewall and now I can fetch that URL.
If still doesn't work, try to turn off Firewall on your PC, such as Windows Firewall.

Not able to add android platform using AVD manager - not able to fetch the url from AVD

I wanted to start working on android but having installation issues. When I start the AVD Manager and check the repository.xml url it gives me an error "... not able to fetch the url. Connection timeout." the same thing happens if I use http or https but if i try to open the url in my browser, it returns the response. I do not have a manual proxy set in the browser but do have an automatic proxy configuration url. I tried copying that url to the internet section in AVD but still no response returned. Also, we do not have the permission to turn off the firewall.
Is there a place where i can download the SDK Platform Android (1.6 preferred)?
if you look in the folder where you have the sdk installed, you will see both the avd manager and the sdk manager. click on the sdk manager and you will be able to install additional platforms from there. Still not showing up in my AVD manager, but Android 4.0 is downloading so i no longer care :)
Consult this
HTH
I've been working on the android developer "quick start" for about a week. This problem has not been solved or at least not explained anywhere. It's been happening for a couple of years now. 2008 is the first record of a problem. All suggestions have failed. "change 'https' to 'http'" etc.
cM
I came across this with a similar answer.
I used the installer, and it didn't install the AVD manager. Going back to the developer files I grabbed the 'rar' and ran the 'adk manager' to get the files I needed. This installed the files to set the target when creating the AVD.
Worked for me.

Categories

Resources