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 ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.