Android模拟器分配内存失败8

标签 android android-emulator

当我尝试从 Eclipse 运行我的 WXGA800 模拟器时,它会给出这样的错误

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.

我还检查了以下链接

Failed to allocate memory: 8

Android: failed to allocate memory

我尝试减少模拟器中的 RAM 大小并增加 Java heapsize 和 ramsize,但我仍然面临同样的错误。

最佳答案

更新:从 Android SDK Manager 版本 21 开始,解决方法是编辑 C:\Users\<user>\.android\avd\<avd-profile-name>.avd\config.ini并更改值

hw.ramSize=1024 

hw.ramSize=1024MB

Android 4.2 API 17

模拟器真的很慢,希望他们能尽快发布英特尔镜像如果你想更改它,请使用新的 API17 Intel x86 镜像..(HAXMConfiguration) p>


较早的 Android SDK 管理器版本:

内置 WXGA800 皮肤也有同样的问题。我通过将虚拟设备设置编辑为:

  • 目标 4.0.3 API 15/4.1.0 API 16
  • SD 卡 300MiB
  • 分辨率 1280 x 800(手动设置 - 不是内置的)
  • 设备内存大小 1024MB(数字加上 MB)
  • 抽象 LCD 160

这是我的 4.1.0 API 16 平板电脑配置 C:\Users\<user>\.android\avd\<avd-profile-name>.avd\config.ini

hw.lcd.density=160
sdcard.size=300M
skin.path=1280x800
skin.name=1280x800
hw.cpu.arch=arm
abi.type=armeabi-v7a
hw.cpu.model=cortex-a8
vm.heapSize=48
hw.ramSize=1024MB
image.sysdir.1=system-images\android-16\armeabi-v7a\

此配置也显示软件 key Screenshot Android 4.1 emulator 1280x800@160

关于Android模拟器分配内存失败8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11667907/

相关文章:

android - 更新 ADT 后无法从 AVD(模拟器)中的键盘(硬件)输入

android - 有关信号强度的 RIL 日志

java - 使用模拟器时的 keyDispatchingTimedOut

android - 未知 Chrome 错误 : -6 (jquery mobile)

android - 如何在 React-Native 中只获得数字键盘?

android - 错误 :Failed to complete Gradle execution. 原因:未知

android - Libvirt + 安卓模拟器

android - 我如何使用 google places 在 android 中查找位置

javascript - 移动(Android)jquery onclick 设计

android - Android 模拟器 Mac 听不到声音