---
title: "Out of memory build errors"
canonical_url: "https://www.nutrient.io/guides/android/troubleshooting/out-of-memory-build-error/"
md_url: "https://www.nutrient.io/guides/android/troubleshooting/out-of-memory-build-error.md"
last_updated: "2026-05-30T02:20:01.177Z"
description: "Solutions for common issues and errors in Nutrient Android SDK with debugging tips and workarounds."
---

The [Gradle](https://gradle.org/) daemon runs on top of the Java Virtual Machine (JVM) and uses conservative memory settings by default. Nutrient is a large SDK, and building it might exceed the maximum memory available for the Gradle daemon. If you see the following error while building your app, your Gradle process is running out of memory:

```

OutOfMemoryError: GC overhead limit exceeded

```

To fix this issue, you’ll need to increase the heap size of the Gradle JVM. This can easily be done by modifying your `gradle.properties` file:

```gradle.properties...
org.gradle.jvmargs=-Xmx8G -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

```

The `-Xmx8G` parameter sets the maximum heap size for Gradle JVM. We recommend 8&nbsp;GB if your machine has enough memory.
---

## Related pages

- [Image size too big](/guides/android/troubleshooting/errors-and-warnings/image-size-too-big.md)
- [Vfy Warnings](/guides/android/troubleshooting/vfy-warnings.md)
- [Gradle Peer Not Authenticated](/guides/android/troubleshooting/gradle-peer-not-authenticated.md)
- [Abi Set Not Compatible](/guides/android/troubleshooting/abi-set-not-compatible.md)
- [Java Lang Noclassdeffounderror](/guides/android/troubleshooting/java-lang-noclassdeffounderror.md)
- [Multidex](/guides/android/miscellaneous/multidex.md)

