Android emulator failed to allocate memory 8

后端 未结 12 2188
误落风尘
误落风尘 2020-11-30 16:27

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         


        
相关标签:
12条回答
  • 2020-11-30 17:11

    Go to edit Android Virtual Devices and change the 1024 Under Memory Options to 768. If it still doesn't work, keep going lower and lower.

    0 讨论(0)
  • 2020-11-30 17:12

    Reducing the RAM size in the AVD settings worked for me. The AVD being slow can eat up a lot of RAM, so keeping it at a minimum is feasible.

    0 讨论(0)
  • 2020-11-30 17:13

    This error fires if you set the AVD RAM to anything that is larger then the single largest block of continuous memory the emulator is able to allocate. Close anything RAM heavy, start your emulator, start everything else you need. In a previous answer I have limited this to x86 images with IntelHAXM, but this actually is the case for all types of emulator instances.

    0 讨论(0)
  • 2020-11-30 17:14

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

    hw.ramSize=1024 
    

    to

    hw.ramSize=1024MB
    

    Android 4.2 API 17

    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>\.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\
    

    This config shows the software keys too Screenshot Android 4.1 emulator 1280x800@160

    0 讨论(0)
  • 2020-11-30 17:14

    I had the same problem and what ended up being the issue was the RAM size: apparently 1024 (or whatever size) is different from 1024MB. Make sure you specify the units and it should work for you.

    0 讨论(0)
  • 2020-11-30 17:16

    For Skin remove No Skin and add some skin into it

    enter image description here

    0 讨论(0)
提交回复
热议问题