Skip to content Skip to sidebar Skip to footer

Bitmap Size Exceeds Vm Budget Error On Emulator But Not On Device

I am getting the above error whenever I test on an emulator, but not any devices I have tested on. Can anyone suggest why this might happen ?

Solution 1:

You are probably testing on high profile devices that might have 32Mb or more heap size memory. The emulator could be using 24Mb and that's the reason is crashing.

Go to the AVD (Android Virtual Device) editor, and add "Max VM application heap size" to your virtual device hardware properties. Set that value to 32Mb and reboot your emulator.

That should be enough.

If you want to learn more about heap memory I recommend you to read this question.

Post a Comment for "Bitmap Size Exceeds Vm Budget Error On Emulator But Not On Device"