java.lang.OutOfMemoryError: Failed to allocate a 70315068 byte > allocation with 8388608 free bytes and 18MB until OOM

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Try adding these lines to your manifest: android:hardwareAccelerated="false" and android:largeHeap="true" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

,
Expert tip

Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

Solutions on the web

via Google Groups by Alexis Camué, 1 year ago
Failed to allocate a 70315068 byte > allocation with 8388608 free bytes and 18MB until OOM
via Stack Overflow by Sir George
, 11 months ago
Failed to allocate a 144764940 byte allocation with 16777120 free bytes and 27MB until OOM
via Stack Overflow by Nick Dettore
, 2 years ago
Failed to allocate a 144000012 byte allocation with 1048576 free bytes and 63MB until OOM
via Stack Overflow by ywj7931
, 1 year ago
Failed to allocate a 52428812 byte allocation with 33553680 free bytes and 48MB until OOM
via Stack Overflow by Vinothini
, 3 weeks ago
Failed to allocate a 39306252 byte allocation with 16777216 free bytes and 27MB until OOM
via Stack Overflow by ashu_legacy
, 8 months ago
Failed to allocate a 132710412 byte allocation with 4194208 free bytes and 46MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 70315068 byte > allocation with 8388608 free bytes and 18MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)

Users with the same issue

3 times, 2 months ago
8 times, 9 months ago
24 times, 1 year ago
2 times, 1 year ago
15 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.