Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when running emulator: Not enough disk space to run AVD

I get the following error message when trying to run the emulator from Android Studio:

Emulator: emulator: ERROR: Not enough disk space to run AVD 'Nexus_6_API_28'. Exiting...

I tried to increase the size of RAM space but it didn't help.

Software: Debian, Android studio virtual device.

device settings screenshot df -h

like image 666
Gegham Ayvazyan Avatar asked Dec 01 '18 11:12

Gegham Ayvazyan


3 Answers

The issue is not with the amount on your hard drive but the setting requesting how much storage space is required by the emulator.

In Android Studio, follow these steps to reduce the hard drive space requested by the emulator:

  1. Click Tools -> AVD Manager
  2. Click the edit icon for the emulator
  3. Click the Show Advanced Settings
  4. Under Memory and Storage, reduce the Internal Storage, specify something like 2048MB for an emulator that comes with Google Play store or less for emulators without the Google Play Store.

Try to run again and see if it works.

If the above doesn't work, try wiping out the user data from the emulator. You can wipe the user data from the actions sections on the AVD Manager screen.

AVD Manager Internal Storage Setting

like image 118
Joseph Avatar answered Nov 13 '22 21:11

Joseph


It's not about RAM, if you are beginner just use the recomended amount of RAM when creating new AVD. In order to solve your particular problem, Go to the disc where is stored your AVD files, mine is in this Path:

E:\avd.android\avd\Nexus_5X_API_27_1.avd

and free up some space on that hard drive. Do not delete anything from avd folder ! If you do not know on which hard drive is stored your AVD files, go to Tools->AVD Manager

AVD Manager
Choose your emulator and in it's drop-down list press the Show on Disc button. It will take you to that hard drive, then just free up some space. Not sure about minimum space, I have 20Gb and it works perfectly, you can start from minimum 5Gb. Also in that drop-down list try to Wipe the Data first and run the app, before trying to do all mentioned above.

like image 16
Stanley Avatar answered Nov 13 '22 21:11

Stanley


Just follow below steps

1 Increases the size of Internal Storage in AVD
2 Free the C drive in your computer at lease 5-10 GB.

The Emulator will run automatically. Hope it helps

like image 6
fazil Avatar answered Nov 13 '22 20:11

fazil