Android emulator failed to allocate memory 8

后端 未结 12 2187
误落风尘
误落风尘 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 16:55

    This following solution worked for me. In the following configuration file:

    C:\Users\<user>\.android\avd\<avd-profile-name>.avd\config.ini
    

    Replace

    hw.ramSize=1024
    

    by

    hw.ramSize=1024MB
    
    0 讨论(0)
  • 2020-11-30 16:59

    In the AVD setup: Change the CPU/ABI option to MIPS. It worked for me

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

    Changing the ramSize in config.ini file didnt work for me.

    I changed the SD Card size to 1000 MiB in Edit Android Virtual Device window ...It worked! :)

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

    Try this if other answers did not work for you.

    For me This happened for API 27 Emulator.

    API 26 Emulator worked just fine. So I started API 26 Emulator first and then closed it.

    Then I started API 27 Emulator and It worked with No errors at all.

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

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

    hw.ramSize=1024 to

    hw.ramSize=1024MB

    OR

    hw.ramSize=512MB

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

    In my case, the solution was to change not only config.ini but also hardware.ini for the specific skin from hw.ramSize=1024 to hw.ramSize=1024MB.

    To find the hardware.ini file:

    1. Open the config.ini and locate skin.path.
    2. Then navigate to the folder where the android sdk is located.
    3. Open the path, like this: android-sdk\platforms\android-15\skins\WXGA720.
    4. Inside this folder you will locate the hardware.ini.
    5. Change hw.ramSize=1024 to hw.ramSize=1024MB.
    0 讨论(0)
提交回复
热议问题