bitmap size exceeds VM budget in android

后端 未结 5 685
一整个雨季
一整个雨季 2021-01-03 16:49

Getting this

05-25 23:55:59.145: ERROR/AndroidRuntime(3257): java.lang.OutOfMemoryError: bitmap size exceeds VM budget

at this code of min

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-03 17:17

    hi @user418366 i was having the same problem when dealing with images what you can do is if you are using the emulator you can rise the max VM application Heap size so that you can get override of this problem or else as told by all try to compress the size of the image make sure that it was a loss less compression

提交回复
热议问题