Android:java.lang.OutOfMemoryError: Failed to allocate a 23970828 byte allocation with 2097152 free
程序员文章站
2022-06-13 21:28:46
...
使用 Glide 加载图片,偶尔加载不出来,一片空白,控制台打印如下错误
Android:java.lang.OutOfMemoryError: Failed to allocate a 23970828 byte
allocation with 2097152 free
解决办法是在AndroidMenifest.xml文件中设置如下参数:
<application
android:largeHeap="true">
上一篇: 网站被降权了怎么办
下一篇: 淘宝直播最全技巧分享
推荐阅读
-
Android开发——错误:java.lang.OutOfMemoryError: Failed to allocate a 31961100 byte allocation with 152574
-
【Android】解决“java.lang.OutOfMemoryError: Failed to allocate a 8015852 byte allocation with 670144 fre
-
java.lang.OutOfMemoryError: Failed to allocate a 2198284 byte allocation with 191616 free bytes and
-
Android:java.lang.OutOfMemoryError: Failed to allocate a 23970828 byte allocation with 2097152 free
-
java.lang.OutOfMemoryError, Failed to allocate a 2822652 byte allocation with 284176 free bytes and ...
-
Failed to allocate a 38189038 byte allocation with 16777216 free bytes and 20MB until OOM