Wednesday, February 20, 2013

Solution: Emulator Failed to allocate memory: 8...


I have started my AVD from eclipse, suddenly I faced an exception:

[2013-02-20 09:18:12 - Emulator] Failed to allocate memory: 8
[2013-02-20 09:18:12 - Emulator]
[2013-02-20 09:18:12 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2013-02-20 09:18:12 - Emulator] Please contact the application's support team for more information.

The error occurred due to less amount of physical RAM.

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

hw.ramSize : Device ram size : The amount of physical RAM on the device, in megabytes. Default value is "96".

2 comments :

  1. In windows I cant see the file config.ini

    Where is it?

    ReplyDelete
    Replies
    1. If it is Windows XP, then go to "C:\documents and settings" than "C:\Users".

      Delete