diff --git a/gradle.properties b/gradle.properties index f896b75d95c2..e096cd6260ba 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,6 @@ org.gradle.parallel=true org.gradle.daemon=true -org.gradle.jvmargs=-Xmx32768M +# Be careful when changing org.gradle.jvmargs below. It will clobber +# any defaults set by Gradle: https://github.com/gradle/gradle/issues/19750 +org.gradle.jvmargs=-Xmx8g -Xms2g -XX:MaxMetaspaceSize=6g android.useAndroidX=true diff --git a/mobile/android/gradle/dotgradle-offline/gradle.properties b/mobile/android/gradle/dotgradle-offline/gradle.properties index 000366cd2796..3f77ec9a2ff3 100644 --- a/mobile/android/gradle/dotgradle-offline/gradle.properties +++ b/mobile/android/gradle/dotgradle-offline/gradle.properties @@ -1,4 +1,3 @@ // Per https://docs.gradle.org/current/userguide/build_environment.html, this // overrides the gradle.properties in topsrcdir. org.gradle.daemon=false -org.gradle.jvmargs=-Xmx32768M diff --git a/mobile/android/gradle/dotgradle-online/gradle.properties b/mobile/android/gradle/dotgradle-online/gradle.properties index 000366cd2796..3f77ec9a2ff3 100644 --- a/mobile/android/gradle/dotgradle-online/gradle.properties +++ b/mobile/android/gradle/dotgradle-online/gradle.properties @@ -1,4 +1,3 @@ // Per https://docs.gradle.org/current/userguide/build_environment.html, this // overrides the gradle.properties in topsrcdir. org.gradle.daemon=false -org.gradle.jvmargs=-Xmx32768M