java.lang.OutOfMemoryError: Failed to allocate a 409534333 byte allocation with 9927994 free bytes and 177MB until OOM


Solutions on the web2

Solution icon of stackoverflow
Failed to allocate a 409534333 byte allocation with 9927994 free bytes and 177MB until OOM

Solution icon of github
Failed to allocate a 344766614 byte allocation with 11726298 free bytes and 239MB until OOM

Stack trace

java.lang.OutOfMemoryError: Failed to allocate a 409534333 byte allocation with 9927994 free bytes and 177MB until OOM
	at com.android.tools.fd.runtime.FileManager.readRawBytes(FileManager.java:831)
	at com.android.tools.fd.runtime.FileManager.checkInbox(FileManager.java:249)
	at com.android.tools.fd.runtime.BootstrapApplication.createResources(BootstrapApplication.java:126)
	at com.android.tools.fd.runtime.BootstrapApplication.attachBaseContext(BootstrapApplication.java:235)
	at android.app.Application.attach(Application.java:187)
	at android.app.Instrumentation.newApplication(Instrumentation.java:1020)
	at android.app.Instrumentation.newApplication(Instrumentation.java:1004)
	at android.app.LoadedApk.makeApplication(LoadedApk.java:573)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4749)
	at android.app.ActivityThread.access$1600(ActivityThread.java:163)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:148)
	at android.app.ActivityThread.main(ActivityThread.java:5491)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

3 times, 10 months ago