[英]Can Not Increase Android Emulator Internal Storage
I can't increase android emulator internal storage more than 533 MB even I already tried: 我无法增加Android模拟器内部存储超过533 MB,即使我已经尝试过:
But the android emulator internal storage still 533 MB 但android模拟器内部存储仍然是533 MB
My setting for emulator
我的模拟器设置
You can resolve this resizing the userdata.img file located on your avd emulator folder: 您可以解决此问题,调整位于avd模拟器文件夹中的userdata.img文件的大小:
cd ~/.android/avd/yourEmulatorName
e2fsck -f userdata-qemu.img
rm userdata-qemu.*
resize2fs userdata.img 1024M
Now start your avd emulator again and you'll see that it's storage was increased. 现在再次启动你的avd模拟器,你会看到它的存储空间增加了。 Windows users can do this with Cygwin enabling the "e2fsprogs" package on install/update.
Windows用户可以使用Cygwin在安装/更新时启用“e2fsprogs”软件包。
PS: You must change 1024M to your wanted value of internal storage.
PS:您必须将1024M更改为您想要的内部存储值。
So all you need to increase the internal storage is run two commands on your target emulator folder. 因此,增加内部存储所需的只是在目标模拟器文件夹上运行两个命令。
In other words, you must: 换句话说,你必须:
cd ~/.android/avd/yourEmulatorName
rm userdata-qemu.*
resize2fs userdata.img 1024M
我尝试了很多时间来增加现有avd的内部存储但是没有成功,答案是:删除当前的avd并在创建它时设置内部存储
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.