【问题标题】:Android emulator not running with 2G RAMAndroid 模拟器没有运行 2G RAM
【发布时间】:2012-11-10 22:14:48
【问题描述】:

我正在尝试在具有 16GB RAM (Windows 8 x64) 的 PC 上使用以下设置启动 Android 模拟器:

Abstacted LCD Density: 240
Max VM application heap: 24
Device ram size: 2048

当我尝试启动模拟器时,出现错误:

Starting emulator for AVD 'Android_4.0_1024'
emulator: WARNING: Requested RAM size of 2048MB is too large for your environment, and is reduced to 1152MB.
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.

我做错了什么,如何运行具有超过 1 GB RAM 的模拟器?

提前致谢, 伊万

【问题讨论】:

标签: android emulation avd


【解决方案1】:

Win64 是一个好的开始。

您是否碰巧安装了 64 位 JDK?

PS:

Windows 7/64 非常适用于 64 位 JDK。我对 Windows 8 和任何 Java 的经验为零,所以我无法为您提供帮助...

【讨论】:

  • 是的。 java 版本 "1.6.0_25" Java(TM) SE Runtime Environment (build 1.6.0_25-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
  • OK - 然后定义一些运行时开关(-Xmx、-Xss 等)。而且,AFAIK,Android SDK 完全是 Win32。但是,IIRC,您仍然可以为您的模拟器充分利用 64 位地址空间:docs.oracle.com/javase/7/docs/technotes/tools/windows/java.html
猜你喜欢
  • 2019-06-19
  • 1970-01-01
  • 2012-10-09
  • 2021-05-31
  • 2018-05-19
  • 1970-01-01
  • 2017-11-17
  • 2021-09-03
相关资源
最近更新 更多