From 2c0d3ae2bcd3dbd3d4b5b01edabed76a67194cb4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 26 Nov 2025 08:51:04 +0000 Subject: [PATCH] Add guidance for memory-constrained environments and configuration cache Co-authored-by: hossain-khan <99822+hossain-khan@users.noreply.github.com> --- gradle.properties | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gradle.properties b/gradle.properties index 6e67709..56916f9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,6 +8,7 @@ # The setting is particularly useful for tweaking memory settings. # Reference: https://github.com/android/nowinandroid/blob/main/gradle.properties # NOTE: These settings assume at least 8GB+ of available RAM (4GB for Gradle + 4GB for Kotlin daemon) +# For memory-constrained environments, reduce -Xmx values (e.g., -Xmx2g for both on systems with 4-6GB RAM) org.gradle.jvmargs=-Dfile.encoding=UTF-8 -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=1 -XX:ReservedCodeCacheSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xmx4g # Kotlin Daemon arguments with optimized GC settings @@ -36,6 +37,8 @@ org.gradle.caching=true # Enable configuration caching # https://docs.gradle.org/current/userguide/configuration_cache.html +# NOTE: Configuration cache is an incubating feature. If you encounter build issues, +# you can disable it by commenting out these lines or setting them to false. org.gradle.configuration-cache=true org.gradle.configuration-cache.parallel=true