問題描述
當我嘗試從 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的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!