Not able to install emulator in Android Studio

Viewed 2674

I am new to Mobile automation. I am trying to create AVD in Android studio. I getting below error.

*Packages to install:

  • Android Emulator (emulator) Preparing "Install Android Emulator (revision: 30.7.5)". Downloading https://dl.google.com/android/repository/emulator-windows_x64-7491168.zip An error occurred while preparing SDK package Android Emulator: C:\Program Files\Android\sdk.downloadIntermediates. "Install Android Emulator (revision: 30.7.5)" failed. Failed packages:
  • Android Emulator (emulator)*

The Steps I followed to create AVD is, Tools -> AVD Manager -> Create Virtual device ->Selected P4XL phone, Clicked on Q Download, then installation not successful. not sure what exactly i missed in configuration. can someone help me on thisenter image description here

enter image description here

1 Answers

You can manually download the System Image from here https://dl.google.com/android/repository/emulator-windows_x64-7491168.zip.

And then go to Android Sdk Path,

you can check out where you have put your Sdk by navigating to File/Project Structure/ Sdk Location.

Like for me it's D:\Android_SDK

And in here open the system-images folder. Here you will see folders with different Android versions, if there isn't any create one according to the Android Version of your system_image like,

android-30

And then create google_apis folder. Here extract the zip file you have downloaded. Then Open your Android Studio, you will then be able to select the system_image and create the AVD without downloading from Android Studio.

Related