虚拟机 (VMWare) 内的 Android E(ICS / 4.0) 模拟器

发布于 2024-12-14 11:24:30 字数 634 浏览 4 评论 0原文

我一直在尝试使用 VMWare 在虚拟机中运行适用于 Android r14 的 AVD,但几乎没有成功。 r11-r13版本是痛苦到了极点,但到了r14,终于到了无法使用的阶段。

显然,最好的选择不是在虚拟机内运行,但这是由要求强加给我的。

我尝试过运行 Windows 7(32 和 64)和 Ubuntu 11.10(32 位)的 VMWare 来宾,它们都给出几乎相同的结果:模拟器根本不启动(冻结)或在大约 30 分钟后启动,但然后将永远不会再开始。主机是 Windows XP 64。

我尝试为模拟器分配 800 到 1024MB 的 RAM,来宾 VM 都分配有 2GB,主机有 8GB 的​​ RAM。 logcat 输出似乎表明存在大量垃圾收集事件,但模拟器进程似乎仅使用分配内存的一小部分(在极少数情况下,它启动时,该进程确实会占用分配给设备的内存量) 。来宾操作系统远未使用其全部内存分配。

模拟器调试输出根本没有显示任何错误。

如果有机会,任何人有任何想法,请分享。

更新:我刚刚尝试了带有 Ubuntu 主机的 VBox XP 来宾。我得到

“C:\android-sdk\tools>无法分配内存:8

此应用程序已请求运行时以不寻常的方式终止它。 请联系应用程序的支持团队以获取更多信息。 ”

I've been trying to run the AVD for Android r14 inside a Virtual Machine using VMWare with almost no success. The r11-r13 versions were painful in the extreme but with r14, it has finally reached the unusable stage.

Clearly the best option is not to run inside a VM but this is being forced upon me by requirements.

I've tried running VMWare guests of Windows 7 (32 & 64) and Ubuntu 11.10 (32 bit) which all give pretty much the same results: either the emulator does not start at all (freezes) or starts after about 30 minutes but will then never start again. The host is Windows XP 64.

I've tried allocating between 800 and 1024MB of RAM to the emulator, the guest VM's all have 2GB allocated to them and the host has 8GB of RAM. The logcat output seems to indicate a huge number of Garbage collection events yet the emulator process appears to be only using a fraction of the allocated memory (On the rare occasions it starts, the process does then take the amount of memory allocated to the device). The guest OS's are nowhere near using their full memory allocation.

The emulator debug output shows no errors at all.

If by any chance, anyone has any ideas, please do share.

Update: I've just tried a VBox XP guest with an Ubuntu host. I get

"C:\android-sdk\tools>Failed to allocate memory: 8

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沦落红尘 2024-12-21 11:24:30

您可以尝试在 VirtualBox (Oracle WM) 中运行 Android_x86。

为此,请创建一个虚拟机(为操作系统选择 Linux > 其他 Linux),启动它,
并将 Android_x86 ISO 文件挂载为 CD-ROM。

我正在使用 android-x86-2.3-RC1-eeepc.iso
可以在此处下载。
试试吧!这很容易。

You can try to run Android_x86 in VirtualBox (Oracle WM).

To do this, create a VM (choose Linux > Other Linux for OS), start it,
and mount the Android_x86 ISO file as a CD-ROM.

I'm using android-x86-2.3-RC1-eeepc.iso.
It can be downloaded here.
Try it! It's easy.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文