Skip to content

Commit 24f9dc1

Browse files
authored
Increase Gradle heap for Android release builds (#76)
1 parent 0a6c2c0 commit 24f9dc1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎gradle.properties‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
# http://www.gradle.org/docs/current/userguide/build_environment.html
77
# Specifies the JVM arguments used for the daemon process.
88
# The setting is particularly useful for tweaking memory settings.
9-
org.gradle.jvmargs=-Xmx1536m
9+
# D8 and Android lint run during release packaging and exceed the default heap on
10+
# this project's dependency graph. Keep enough headroom for both in the Gradle
11+
# daemon rather than failing during dex archive merging.
12+
org.gradle.jvmargs=-Xmx4g
1013
# When configured, Gradle will run in incubating parallel mode.
1114
# This option should only be used with decoupled projects. More details, visit
1215
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects

0 commit comments

Comments
 (0)