Android模拟器分配内存失败8

Android emulator failed to allocate memory 8(Android模拟器分配内存失败8)
本文介绍了Android模拟器分配内存失败8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

分配内存失败:8此应用程序已请求运行时以不寻常的方式终止它.请联系应用程序的支持团队以获取更多信息.

我还检查了以下链接

, 配置)

<小时>

较早的 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>.androidavd<avd-profile-name>.avdconfig.ini

hw.lcd.density=160sdcard.size=300Mskin.path=1280x800皮肤名称=1280x800hw.cpu.arch=armabi.type=armeabi-v7ahw.cpu.model=cortex-a8vm.heapSize=48hw.ramSize=1024MBimage.sysdir.1=系统图像android-16armeabi-v7a

此配置也显示软件密钥

When I try to run my WXGA800 emulator from Eclipse it's giving an error like this

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.

I checked the following links also

Failed to allocate memory: 8

Android: failed to allocate memory

I have tried reducing RAM size in emulator and increasing Java heapsize and ramsize but still I am facing the same error.

解决方案

Update: Starting with Android SDK Manager version 21, the solution is to edit C:Users<user>.androidavd<avd-profile-name>.avdconfig.ini and change the value

hw.ramSize=1024 

to

hw.ramSize=1024MB

The emulator is really slow, hope they will release the intel images soon use the new API17 Intel x86 images if you want to change it .. (HAXM, Configuration)


Earlier Android SDK Manager releases:

Had the same problem with the built-in WXGA800 skin. I got it working by editing the virtual device setup to:

  • Target 4.0.3 API 15 / 4.1.0 API 16
  • SD-card 300MiB
  • Resolution 1280 x 800 (set manually -not the built-in ones)
  • Device ram size 1024MB (with MB added to the number)
  • Abstracted LCD 160

Here my tablet config for 4.1.0 API 16 C:Users<user>.androidavd<avd-profile-name>.avdconfig.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-imagesandroid-16armeabi-v7a

This config shows the software keys too

这篇关于Android模拟器分配内存失败8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)