Error text
java.lang.OutOfMemoryError: Failed to allocate a 33177612 byte allocation with 25165824 free bytes and 24MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 33177612 byte allocation with 25165824 free bytes and 24MB until OOM
The app exceeds the memory limit the device gives it. Big images, leaking objects or huge lists are the usual culprits.
dumpsys meminfo.inSampleSize).Activity or listeners never removed (LeakCanary).RecyclerView and paging for long lists.largeHeap is only a stopgap; fix the real cause.adb shell dumpsys meminfo com.example.app adb shell am dumpheap com.example.app /data/local/tmp/h.hprof # manifest <application android:largeHeap="true" ...>
Run LeakCanary in debug and check the memory profile after each big feature.
Author and license: Nibras Code