MapFragment Google Maps API v2 Out of Memory Error / Memory Leak

我的梦境 提交于 2019-11-30 15:07:51

try call map onPause, onResume, onLowMemory in corresponding Fragment methods.

I ran into this problem trying to run an app on demo mode for a few hours at a time. No matter what I tried, after 30 minutes, I would see this crash without a readable stack report.

I tried many different things but this was the only thing that worked for me. It's not a fix for the map bug, but it kept my app from crashing:

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