Error with SDK package download in Android Studio

后端 未结 15 765
伪装坚强ぢ
伪装坚强ぢ 2020-12-28 17:45

java.io.IOException: Cannot download , response: 200 OK Warning: An error occurred while preparing SDK package Android Support Repository: Cannot downloa

相关标签:
15条回答
  • 2020-12-28 17:58

    Very often the cause of errors can be an interruption of the Internet connection. Just resume downloading with stable Internet.

    0 讨论(0)
  • 2020-12-28 17:59

    Below steps fixed the problem for me -

    1. Download zip file from this location
    2. Extract it and move the emulator folder image for emulator folder into the SDK folder image for SDK folder

    I hope it works for you as well, I was using Windows 10 Pro 64bit

    0 讨论(0)
  • 2020-12-28 17:59

    This amount of download requires high speed Internet and if you don't have this it may show this error.

    0 讨论(0)
  • 2020-12-28 18:00

    Find Android SDK folder. (Usually C:\User\AppData\Local\Android\sdk) Delete folders which starts with dot(.), they are temporary download files. Then delete Android Emulator from SDK Manager. Then run Android Studio as administrator and then download and install Android Emulator again. Now you can create emulator and use it without errors.

    0 讨论(0)
  • 2020-12-28 18:04

    delete uncompleted download in "[Android SDK folder]\.downloadIntermediates". i solved my problem by this method.

    0 讨论(0)
  • 2020-12-28 18:05

    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
    0 讨论(0)
提交回复
热议问题