Android 5.0 emulator showing Storage space running out

半城伤御伤魂 提交于 2019-12-21 03:25:18

问题


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?


回答1:


Open AVD Manager --> Wipe Data




回答2:


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.




回答3:


emulator -avd "Name" -partition-size 500

This solved the issue for me.

Update on how to execute above command:

  1. Go to a terminal
  2. cd [android SDK directory]/tools/
  3. linux terminal: ./emulator -avd nameOfAvd -partition-size 500 &
    windows : emulator -avd nameOfAvd -partition-size 500



回答4:


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.




回答5:


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..)



来源:https://stackoverflow.com/questions/26593711/android-5-0-emulator-showing-storage-space-running-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!