Error with SDK package download in Android Studio

Swati  picture Swati · Apr 30, 2017 · Viewed 76.5k times · Source

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

Answer

user7940775 picture user7940775 · Apr 30, 2017

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.