Mazhar
Mazhar

Reputation: 141

Emulator: emulator: ERROR: Not enough space to create userdata partition

I have just changed my laptop. On the new laptop, android studio emulator give error when trying to run app: "Emulator: emulator: ERROR: Not enough space to create userdata partition. Available: 6253.683594 MB at C:\Users\RAFIQ.android\avd\Nexus_5X_API_27_2.avd, need 7372.800000 MB" I have 7 GB space still available in C drive. I have enabled virtualization but still get this error. Thanks in advance!

Upvotes: 14

Views: 41488

Answers (10)

João Carlos
João Carlos

Reputation: 81

1 - Create a directory for your emulators on a larger drive, for example: D:\emulators

2 - Go to C:\Users\<your_user>\.android\avd\<your_avd_name>

3 - Open the <your_avd_name>.ini file and edit the PATH line

4 - Change C:\Users\<your_user>\.android\avd\<your_avd_name> to D:\emulators\<your_avd_name>

5 - Copy your emulator folder to D:\emulators

6 - Run your Emulator

Upvotes: 8

user18160012
user18160012

Reputation: 1

On Mac OS just navigate to your avd image path in .android\avd<device_name>.avd

and delete the userdata-qemu.img.qcow2 file.

I did the same and it worked for me.

Upvotes: 0

Dario Corno
Dario Corno

Reputation: 1185

This error message refers to YOUR disk space, not the emulated Android one. It just warns you that there is not enough disk space on your OS to create a virtual partition for Android User data. Empty some space on your system disk (or the one that holds the ADVs) and everything will work as expected.

Upvotes: 0

Mohammed Hammad
Mohammed Hammad

Reputation: 43

I had the same issue and the problem was not the image files but the cache of deleted Virtual Devices. So, I deleted two VDs and I don't see them in the AVD but they were occupying space when I navigated to the avd folder. Deleting them fixed the issue for me.

Upvotes: 1

Aazidom
Aazidom

Reputation: 11

Just go to "avd manager" then "wipe data"

Upvotes: 0

mirsahib
mirsahib

Reputation: 445

for linux user (ubuntu 20 lts)

  • Goto /home//.android/avd/<your_avd_name>
  • Delete the .img file (for me it was userdata.img and sdcard.img,they are the 2 big file for me)

Upvotes: 1

Ashish Shukla
Ashish Shukla

Reputation: 1047

I have found a solution may be helpful to someone :

Just navigate to your avd image path in C:\Users\ashishs\.android\avd\

and delete some of the unused images.

I did the same and the above issue vanished

Good Luck :)

Upvotes: 6

mav-raj
mav-raj

Reputation: 771

First of all it has nothing to do with RAM of your virtual device. In your case your C:\Users\RAFIQ has only 6253.683594 MB of space but minimum required is 7372.800000 MB, try to free some space there and it will work fine.

Upvotes: 1

Sunny
Sunny

Reputation: 425

Goto AVD device manager > Click New Hardware Profile > Change memory RAM: 8000 MB

Upvotes: -4

Meisam Nazari
Meisam Nazari

Reputation: 994

First of all, check your disk space and if you do not have enough space to delete some items, it worked for me. If this method does not work then go to your advanced setting of AVD Emulator and increase SD card/studio-managed space.

Upvotes: 2

Related Questions