Skip to content Skip to sidebar Skip to footer

Error With Sdk Package Download In Android Studio

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

Solution 1:

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.

Solution 2:

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

Solution 3:

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

Solution 4:

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

Solution 5:

run the studio.sh script with sudo:

"sudo ./studio.sh"

if that does not work run:

"sudo chmod 777 -R /opt"

without quotes should work

Post a Comment for "Error With Sdk Package Download In Android Studio"