Bitmap Size Exceeds VM Budget Error on Emulator but Not on Device

前提是你 提交于 2020-01-06 03:04:05

问题


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 ?


回答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.



来源:https://stackoverflow.com/questions/11168583/bitmap-size-exceeds-vm-budget-error-on-emulator-but-not-on-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!