'Android emulator on apple M1 giving INSTALL_FAILED_INSUFFICIENT_STORAGE most of the time

I'm trying to run android emulator on M1 and the emulator barely fits 1 of the apps im working on.

When i try to run my react native project i usually get INSTALL_FAILED_INSUFFICIENT_STORAGE

I haven't installed any other apps on the emulator and all the pre-installed apps cannot be uninstalled.

Any idea how can i free up some storage space on android emulator ?

enter image description here



Solution 1:[1]

Managed to fix it by following these steps :

  1. click on the small arrow next to my emulator in avd manager and select Show on Disk

enter image description here

  1. Open config.ini

enter image description here

  1. find disk.dataPartition.size={some number} and change it to disk.dataPartition.size=4000MB
  2. delete all .img files

here's the current storage

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Donia El Fouly