diff --git a/gradle.properties b/gradle.properties index ce03899940..4ffc90776d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,10 @@ # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8 -XX:+UseG1GC +# Matches the heap size CI already uses for release builds (see GRADLE_OPTS in +# .github/workflows/release.yml and nightly.yml) - a local `assembleRelease`/`bundleRelease` +# runs R8 on the full app and can run out of heap well before 4g on this codebase's size. +org.gradle.jvmargs=-Xmx8g -Dfile.encoding=UTF-8 -XX:+UseG1GC # AndroidX package structure to make it clearer which packages are bundled with the # Android operating system, and which are packaged with your app"s APK