Android Studio download cancels every single time - android

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.

Related

Android device monitor freezes on Mac OS X

I just launched the Android device monitor for the first time on OSX but it freezes and I am not able to click anywhere, it just does not respond to any mouse or keyboard input.
I think it's downloading, I have very good internet speed, but it's downloading very slowly. I tried to download a song and it downloaded 5 MB in 30 seconds, and for this case it's downloading 2 MB in 5-10 min and its size is about 540 MB, so please assist me with what should I do to download fast? Any help would be appreciated.
Is there any manual way to download and connect it to Android Studio?
Any way to make it respond to mouse clicks?
Finally Fixed!!!. This problem occured to me when i was using jdk-8u161-macosx-x64, downgrading the jdk from jdk-8u161-macosx-x64 to jdk-8u151-macosx-x64 solved the issue for me.
Remove your existing java jdk by running this command sudo rm -rf /Library/Java/*
Download the jdk-8u151-macosx-x64 from http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
you need to sign up to oracle to download previous versions of jdk.
intall jdk-8u151-macosx-x64 by just following the instructions.
Alternatively you can keep latest jdk and update swt used by monitor:
get updated swt: https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.7.1a-201710090410/swt-4.7.1a-cocoa-macosx-x86_64.zip
unzip somewhere
copy extracted swt.jar over
lib/monitor-x86_64/plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.100.1.v4236b.jar
While other answers are correct that the solution is to use an old version of the JDK, just replacing the latest JDK was not an option for me (and should not be for you, either!). To get monitor working with an older Java version installed along the newest one, do the following:
Find your android SDK location
Go to <android-sdk>/tools/libs/monitor-x86_64/
Find the monitor.app application and right click on it, select "Show Package Contents"
Expand Contents and edit Info.plist in a text editor
Look for the <key>Eclipse</Key> section
Uncomment one of the <string>-vm</string>... lines and point it to the 1.8 151 JDK, like so:
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin/java</string>
Save the file
Start the app and it should work now!
Remember that you'll have to do this again when the tools are updated!
Finally issue resolved.
It was JDK java version.
Changed it to a level below and its working now.
java.version=1.8.0_152-ea --> not supported it seems
java.version=1.8.0_151 --> working fine with it
With android studio 3.0, you can use Device File Explorer. Tab button is right bottom side of the screen.
You can upload your file by right click - select upload.
This solution works: https://stackoverflow.com/a/51212642/4903059
Alternatively you can keep latest jdk and update swt used by monitor:
get updated swt: https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.7.1a-201710090410/swt-4.7.1a-cocoa-macosx-x86_64.zip
unzip somewhere
copy extracted swt.jar over lib/monitor-x86_64/plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.100.1.v4236b.jar
But I had to download a newer swt when using Android Studio 4.0 on macOS Catalina 10.15.5:
https://archive.eclipse.org/eclipse/downloads/drops4/R-4.9-201809060745/download.php?dropFile=swt-4.9-cocoa-macosx-x86_64.zip
This tends to work for me but turn off WiFi on all the devices on your network. Also clear your cache.
If you just want to copy files from your local computer to simulator, I think you can use the adb command to achive this purpose.
Here is the sample command to copy your folder / file to the simuator's sdcard
adb push myFolder/ /sdcard/myFolder

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.

Slow SDK download through Android SDK manager

When I run Android SDK manager to download SDK platform, the download speed is 8 KiB/s. It would take more than 2 hours to download one platform like Android 2.2, API 8. There is no problem with download stuff through browser. Does anyone know how to fix this problem?
I have not experienced this issue. Force or unforce HTTPS (there is an option for this under Settings), and see if this improves the quality of your connection.
I also have this problems and found a solution online and it looks like it working for now. I tried with forcing HTTP AND HTTPS and nothing really work.
So try this:
1.) Run command prompt as an administator - Windows 7 (Start->Right click on Command Prompt-> Choose "Run as Administrator") or "Start" enter CMD into search box and then right click and "Run as administrator".
2.) In Command Prompt window enter:
netsh
and press ENTER
3.) Then write this and hit ENTER at the end:
interface tcp set global autotuning=disabled
4.) Now restart your SDK manager and try to download again!
Before doing the above, Take note of your original value in case you want to revert back:
interface tcp show global
Try disabling antivirus and enabling Force https://... sources to be fetched using http://... in Android SDK Manager's Tools-> Options....
This helped me.
Unchecking the https box worked for me.
Check those XML file links
Let me pen them down here...
Google Repository for SDK's Of all Android API
Google Repository for Add-on's (Google API's) for all Android API
Intel API's for Android
Google repository for system Images
MIPS repository for system images
Intel repository for system images
Now you will know what you must be looking out for....
Take an example of this snapshot
Say i want to download google API for Android API12
then Google Repository for Add-on's (Google API's) for all Android API
Lookup for <sdk:url> tag under <sdk:addon> tag as given in the example below
and then use the link used to obtain the XML file
Strip off the last part and replace it with the <sdk:url> tag content
for eg: in this case it would be like
Google API for Android API 12 (HoneyComb)
there you have a download link....
Similarly SDK's ,System-images can be downloaded....
Dont have to wait for ages to complete that list ;) for you download to get accelerated use DAP or IDM ( download accelerators )
Enjoy! :)
You can manually download and install Android SDK Component.
Method:
STEP 1- Go to android SDK installation folder("C:\Users\%username%\Appdata\Local\Android\android-SDK" or any other location you choose during installation) then open android SDK manager
STEP 2- Check the Component you want to download
STEP 3- Then click on install 1 package
STEP 4- Click on stop button
STEP 5- Navigate to android SDK installation folder then go to temp ("C:\Users\%username%\AppData\Local\Android\android-sdk\temp") folder here you will see two files are created copy the name of the set up information file
STEP 6- goto web browser and type url https://dl.google.com/android/repository/(file name you copied)
in my case https://dl.google.com/android/repository/android-23_r01.zip
STEP 7 - A file will be downloaded automatically
STEP 8- After download is finished go to "C:\Users\%username%\Appdata\Local\Android\android-sdk\temp" and delete the two files created there and paste the downloaded file there
STEP 9- Now go to android SDK manager and check the component again and click on install 1 package
STEP 10- The package will be installed automatically
After working on this for weeks and trying all the above plus other suggestions around the web, I came up with the following solution:
1) Remove PC Tools Firewall Plus
2) Remove AVG free antivirus
3) Install Comodo Internet Security Free.
The files are downloading and installing fine now. I'm also using HTTP mode as suggested. If you have any of the above security tools I recommend giving this a try. BTW, turning off PC Tools will not be enough.
None of the other solutions listed here resolved the issue for me, not even uninstalling Android Studio/SDK and then reinstalling them. It's worth noting that the standalone SDK Manager has also been deprecated since a lot of these answers were posted.
After hours of troubleshooting, I managed to resolve the issue by renaming my Android Studio config folder (~/.AndroidStudio2.3) to something else and making Android Studio create it again. You can ask Android Studio to import your old config and it still works, so it's likely something to do with the system folder.
Hope this helps anyone else that is having this issue but was unable to find a solution like myself.
I had the same problem plus google don't allow me to access andriod, and I must connect with a VPN. so I download all xmls and package that I need to my localhost and set dl-ssl.google.com too 127.0.0.1 and then I install them from my local with extra speed :D
I also have this problems and found a solution online and it looks like it working for now. I tried with forcing HTTP AND HTTPS and nothing really work.
So try this:
1.) Run command prompt as an administator - Windows 7 (Start->Right click on Command Prompt-> Choose "Run as Administrator") or "Start" enter CMD into search box and then right click and "Run as administrator".
2.) In Command Prompt window enter (everything without quotes): 'netsh' and press ENTER
3.) Then write this and hit ENTER at the end: interface tcp set global autotuning=disabled
4.) Now restart your SDK manager and try to download again!

Unable to download SDK components from android.com

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 .

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