Error with SDK package download in Android Studio

2020-05-21 06:34发布

java.io.IOException: Cannot download , response: 200 OK Warning: An error occurred while preparing SDK package Android Support Repository: Cannot download , response: 200 OK. java.io.IOException: Cannot download 'https://dl.google.com/android/repository/emulator-windows-3833124.zip': dl.google.com Warning: An error occurred while preparing SDK package Android Emulator: Cannot download 'https://dl.google.com/android/repository/emulator-windows-3833124.zip': dl.google.com. java.io.IOException: Cannot download ' Warning: An error occurred while preparing SDK package Google Repository: Cannot download

13条回答
Melony?
2楼-- · 2020-05-21 06:51

Hi I faced a similar issue... Turn's out that may be related to system configuration of your machine..

Try downloading latest packages as per your system configuration from below:

https://developer.android.com/studio/?gclid=Cj0KCQjwj9LkBRDnARIsAGQ-hUfGD0_yGXcqqZBN6d1Y-nMZ-TNKZtvdRBHimcE8m0tPYjyUw_bV77AaAsdzEALw_wcB

查看更多
时光不老,我们不散
3楼-- · 2020-05-21 06:51

you can manual download sdk:

  1. https://dl.google.com/android/repository/platform-29_r04.zip
  2. https://dl.google.com/android/repository/3534162-studio.sdk-patcher.zip
  3. https://dl.google.com/android/repository/build-tools_r29.0.3-windows.zip
  4. https://dl.google.com/android/repository/emulator-windows-6306047.zip
  5. https://dl.google.com/android/repository/sources-29_r01.zip
  6. https://dl.google.com/android/repository/platform-tools_r29.0.6-windows.zip

Unpack to

  1. C:\Android\Sdk\platforms\android-2
  2. C:\Android\Sdk\patcher\v4
  3. C:\Android\Sdk\build-tools\29.0.3
  4. C:\Android\Sdk\emulator
  5. C:\Android\Sdk\sources\android-29
  6. C:\Android\Sdk\platform-tools

Parsing

  1. C:\Android\Sdk\build-tools\29.0.3\package.xml
  2. C:\Android\Sdk\emulator\package.xml
  3. C:\Android\Sdk\patcher\v4\package.xml
  4. C:\Android\Sdk\platform-tools\package.xml
  5. C:\Android\Sdk\platforms\android-29\package.xml
  6. C:\Android\Sdk\sources\android-29\package.xml
查看更多
女痞
4楼-- · 2020-05-21 06:54

I had this similar issue below worked for me. The solution for this is:

  1. Run Android Studio as Administrator.

  2. Re run the update.

It will work.

查看更多
够拽才男人
5楼-- · 2020-05-21 06:55

I have a similar problem.

And I notice some setting about Force https//... to be fetched using http://...

After using it, my download run normally:

enter image description here

查看更多
疯言疯语
6楼-- · 2020-05-21 07:04

I had the same problem, I downloaded problematic file 'https://dl.google.com/android/repository/emulator-windows-3833124.zip' and extracted it to C:\Users\$usrname$\AppData\Local\Android\sdk\extras\android. It solved the problem for me.

查看更多
男人必须洒脱
7楼-- · 2020-05-21 07:05

delete uncompleted download in "\Sdk.downloadIntermediates". i solved my problem by this method.

查看更多
登录 后发表回答