android
build_error
ai_generated
true
GradleDaemon: OutOfMemoryError: Java heap space
ID: android/gradle-daemon-oom
82%Fix Rate
86%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 14 | active | — | — | — |
Root Cause
Gradle daemon ran out of memory during build.
genericWorkarounds
-
90% success Set reasonable heap: org.gradle.jvmargs=-Xmx4g in gradle.properties
-
85% success Enable Gradle configuration cache to reduce memory
Dead Ends
Common approaches that don't work:
-
Kill daemon and retry without fixing heap
80% fail
Same OOM on next build
-
Set org.gradle.jvmargs=-Xmx100g
72% fail
Wasteful, may exceed physical RAM