Android memory allocation

后端 未结 4 1111
难免孤独
难免孤独 2020-11-27 03:34

I am getting a \"bitmap size exceeds VM budget\" error. I have read that there is a 16MB memory limit. In this thread Romain Guy says that \"you can only allocate 16 MB of

4条回答
  •  一生所求
    2020-11-27 04:04

    If you're using threads, then the debugger might be the source of the problem. If you run the app under the debugger, then any threads created will still be retained by the debugger, even when they're finished running. This leads to memory errors that won't occur when the app is running without the debugger.

    http://code.google.com/p/android/issues/detail?id=7979

    https://android.googlesource.com/platform/dalvik/+/master/docs/debugger.html

提交回复
热议问题