Error with SDK package download in Android Studio

后端 未结 15 764
伪装坚强ぢ
伪装坚强ぢ 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 18:07

    instalacion offline de complementos de Android Studio 3.6.3 en macos Catalina. primeramente se deben de identificar la ruta de ubicacion de las carpetas:

    SDK: /Users//Library/Android/sdk

    JDK: /Application/Android Studio.app/Contents/jre/jdk/Contents/Home Aqui se debe de configurar la variable JAVA_HOME

    identificar los componentes SDK requeridos:

    1- Android Emulator 266MB

    https://dl.google.com/android/repository/emulator-darwin-6306047.zip

    descomprimir en la carpeta /Users//Library/Android/sdk/emulator

    2- Android SDK Buil-Tools 29.0.3 50MB

    https://dl.google.com/android/repository/build-tools_r29.0.3-macosx.zip

    descomprimir en la carpeta /Users//Library/Android/sdk/build-tools/29.0.3

    3- Android SDK Plataform 29 74.6MB

    https://dl.google.com/android/repository/platform-29_r04.zip

    descomprimir en la carpeta /Users//Library/Android/sdk/platforms/android-29

    4- SDK Patch Applier v4 1.74MB

    https://dl.google.com/android/repository/3534162-studio.sdk-patcher.zip

    descomprimir en la carpeta /Users//Library/Android/sdk/patcher/v4

    5- Source for Android 29 37.6MB

    https://dl.google.com/android/repository/sources-29_r01.zip

    descomprimir en la carpea /Users//Library/Android/sdk/sources/android-29

    .........

    Parsing /Users/yairmamani/Library/Android/sdk/build-tools/29.0.3/package.xml

    Parsing /Users/yairmamani/Library/Android/sdk/emulator/package.xml

    Parsing /Users/yairmamani/Library/Android/sdk/extras/inte/Hardware_Accelerated_Execution_Manager/package.xml

    Parsing /Users/yairmamani/Library/Android/sdk/patcher/v4/package.xml

    Parsing /Users/yairmamani/Library/Android/sdk/platform-tools/package.xml

    Parsing /Users/yairmamani/Library/Android/sdk/platforms/android-29/package.xml

    Parsing /Users/yairmamani/Library/Android/sdk/sources/android-29/package.xml

    Android SDK is up to date.

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

    I had Admin access on my Laptop, but still I faced this problem (also other packages were getting downloaded). I found of that the https://dl.google.com/android/repository/android_m2repository_r47.zip file is quiet large, and in my case since my network speed was slow and I was attempting to download a large file on a slow network I concluded that it was failing for timeout. I switched to a faster LAN and it got downloaded.

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

    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:

    0 讨论(0)
提交回复
热议问题