I just updated Android SDK to version 21 and trying to start emulator. I am using Nexus 4 with CPU Intel atom (x86) 768 RAM and 524 internal storage. Emulator starts fine but it shows en error message, "Storage space running out" and it is very slow. I tried increasing the RAM also but didn't work. What could be the issue?
-
"524 internal storage" -- that's your problem.– 323goOct 27, 2014 at 18:17
-
Thanks for replying. What is the solution ?– MobileAppDeveloperOct 27, 2014 at 18:20
-
1@323go Up your storage space from 524mb cause that is super low anyway... do I win?– zgc7009Oct 27, 2014 at 18:31
-
2@323go Its rude of you. I have already tried increasing RAM and internal membory both, It does not solve my issue. Thats why I thought you were talking about something else and was asking about the solution.– MobileAppDeveloperOct 27, 2014 at 18:50
-
I have found the resolution. Peace :-)– MobileAppDeveloperOct 27, 2014 at 19:43
5 Answers
-
-
This doesn't suffice if the internal storage after OS installation is too small. If this is the case, you need to increase internal storage as described in the answers by @FISH79. 21 hours ago
You have to go in your android folder e.g. on OSX ~/.android/avd/{YOUR_AVD_NAME} and edit file config.ini.
Just add or modify row disk.dataPartition.size = YOUR_SIZE
e.g. disk.dataPartition.size = 1G
Then you may have to wipe your emulator's disk.
emulator -avd "Name" -partition-size 500
This solved the issue for me.
Update on how to execute above command:
- Go to a terminal
cd [android SDK directory]/tools/
- linux terminal:
./emulator -avd nameOfAvd -partition-size 500 &
windows :emulator -avd nameOfAvd -partition-size 500
-
2Does not work for me. I tried -partition-size 1024, because it is already 512 MB and only got < 100 MB left after boot... to small for my App to install. Feb 3, 2015 at 13:14
-
2Did not work for me, also tried recreating avd... did not work. Dec 23, 2015 at 23:36
-
BUT this problem seems to no more occur in API level 23, will be my bug turn-around. Dec 23, 2015 at 23:55
-
2I have created device with 10G storage, 2G sdcard, still "running out of storage". even wiped data multiple times. But it shows only after i try to hot restart the app, Feb 17, 2019 at 20:50
Go to AVD manager on your android studio. click on the pencil icon of the virtual device. on the pop up window click on advanced settings at the bottom. scroll down to memory and storage and alter the default definitions of MB/GB etc.
REinstal the emulator.. Go to your AVD location and delete all the files in avd folder( C:\Users\acer.android\avd ), then Go to android studio AVD Manager and install a new emulator. ( but this will erase the current emulator so, you'll need to download it again..)