2

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

Sugashini
  • 21
  • 1
  • 3
  • Most likely a permission problem as the Android SDK is installed in Program Files directory (where regular users don't have write permissions). – Robert Aug 13 '21 at 16:04

1 Answers1

2

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.

Vaibhav Goyal
  • 1,692
  • 1
  • 8
  • 23
  • I am still not seeing emulator in android studio. I installed emulator separately placed in this location as mentioned Android\SDK\system-images\android-30\google_apis\emulator .. I dont see installed emulator list in my android studio.. do i need to setup .. any path setup? – Sugashini Aug 13 '21 at 16:21
  • This is not the emulator you have installed, this is just a System Image. You have to create the emulator. To create a new Emulator just do all the steps as previous but this time you can choose the System Image directly without downloading again. – Vaibhav Goyal Aug 14 '21 at 05:35
  • got it.. but my issue was with SDK installation.. So I tried uninstall SDK tools clean all.. installed back from Android studio.. this time it worked.. thanks for your help – Sugashini Aug 14 '21 at 10:08