Android:java.lang.OutOfMemoryError: Failed to allocate a 23970828 byte allocation with 2097152 free bytes and 2MB until OOM

前端 未结 30 2072
暗喜
暗喜 2020-11-21 07:33

I want to show the Bitmap image in ImageView from sd card which is stored already. After run my application is crash and getting Ou

30条回答
  •  我在风中等你
    2020-11-21 07:56

    If android:largeHeap="true" didn't work for you then

    1:

    Image Compression. I am using this website

    2:

    Convert images to mdpi,hdpi, xhdpi, xxhdpi, xxxhdpi. I am using this webiste

    Don't remove android:largeHeap="true"!

提交回复
热议问题