如何增加 Android Emulator 的存储空间?(INSTALL_FAILED_INSUFFICIENT_STORAGE) [英] How to increase storage for Android Emulator? (INSTALL_FAILED_INSUFFICIENT_STORAGE)
问题描述
我的一个项目有时(不经常)得到这个,只有几个班安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE
I get this sometimes(not often) for one of my projects, couple of classes only
Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
如何增加模拟器的存储空间?
How do I increase emulator's storage?
推荐答案
更新
这个答案,在我写这篇文章的时候,已经将近八年了,大约五年了.但它仍然是(在我写这篇文章时)接受"的答案,因为它在被问到时回答了问题.
适用于较新 Android Studio 工具的较新答案可在此处找到:https://stackoverflow.com/a/35828035/62 - 这是一个很好的屏幕截图答案.如果您使用的是 Android Studio,请忽略下面的 Eclipse 答案.
The newer answer, that applies to the newer Android Studio tools, can be found here: https://stackoverflow.com/a/35828035/62 -- it's a great answer with screen shots. If you're using Android Studio, ignore the Eclipse answer below.
我正在寻找这个问题的答案,对上述答案不满意.但后来我发现了 答案,所以这里是为了将来参考:
I was searching for the answer to this question, and was unsatisfied with the above answers. But then I found the answer, so here it is for future reference:
总结(并澄清),在 Eclipse 中,转到调试配置".您可以在调试"图标下的下拉菜单中找到它.选择目标",然后选择要启动的首选模拟器目标.然后在其他模拟器命令行选项"下添加:
To summarize (and clarify), in Eclipse, go to "Debug Configurations". You can find that in the drop-down under the "debug" icon. Select "target", and select a preferred emulator target to launch. Then under "additional emulator command line options," add this:
-partition-size 1024
然后关闭模拟器(并移除所有设备),然后单击调试图标,这将启动您选择的首选模拟器.这很重要:Eclipse 需要启动调试器,而不是 AVD.
Then CLOSE the emulator (and remove any devices), and click the debug icon, which will launch the preferred emulator you selected. This is important: Eclipse needs to launch the debugger, not AVD.
这为我解决了问题.
这篇关于如何增加 Android Emulator 的存储空间?(INSTALL_FAILED_INSUFFICIENT_STORAGE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!