Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android 4.0.3 emulator crashes: Failed to allocate memory: 8

The problem started when I changed the skin built-in display setting to WXGA720. Then everytime I'm trying to run the emulator it says the following message:

Starting emulator for AVD 'android403' 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 already tried to lower down the RAM size to 800 MB and then 512 MB (or even 256) but it didn't work either...

I don't know what to do...

Here's a screenshot of the emulator settings window:

enter image description here

Thanx upfront.

like image 473
Eli Revah Avatar asked Jul 03 '12 20:07

Eli Revah


People also ask

How to fix emulator error in Android Studio?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

Why won t my Android emulator work?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

How to check low memory in Android?

The Memory Profiler in Android Studio helps you find and diagnose memory issues in the following ways: See how your app allocates memory over time. The Memory Profiler shows a realtime graph of how much memory your app is using, the number of allocated Java objects, and when garbage collection occurs.


2 Answers

I do sometimes have the same problem. Maybe my solution works for you as well: Instead of choosing the WXGA720 skin preset, manually set the resolution to 720*1280, and manually set the RAM to 768 or even 512. Seems stupid, but it makes a difference if the skin preset is uses or a manual resolution configuration.

like image 126
arpy Avatar answered Dec 16 '22 17:12

arpy


I had the same problem. I have set the resolution manually to 720 X 1280. Set the RAM size as 128MB and SSD to 16 MB. The app came up without any problems after that

like image 30
Shiva Ram Avatar answered Dec 16 '22 17:12

Shiva Ram