diff --git a/rules/android_binary_internal/r8.bzl b/rules/android_binary_internal/r8.bzl index 9fd36a5af..0d5a1c3f0 100644 --- a/rules/android_binary_internal/r8.bzl +++ b/rules/android_binary_internal/r8.bzl @@ -104,7 +104,7 @@ def process_r8(ctx, validation_ctx, jvm_ctx, packaged_resources_ctx, build_info_ inputs = depset([android_jar, deploy_jar] + proguard_specs, transitive = [neverlink_jars]), outputs = [dexes_zip, proguard_mappings_file], mnemonic = "AndroidR8", - jvm_flags = ["-Xmx8G"], + jvm_flags = ["-Xmx8G", "-XX:ThreadStackSize=2048"], progress_message = "R8 Optimizing, Desugaring, and Dexing %{label}", )