Commit 43195ed7 by tonihei Committed by Oliver Woodman

Increase gradle heap size

The update to Gradle 5.1.1 decreased the default heap size to 512MB and our
build runs into Out-of-Memory errors.

Setting the gradle flags to higher values instead.

See https://developer.android.com/studio/releases/gradle-plugin#3-4-0

PiperOrigin-RevId: 247908526
parent 7d1ce3b1
Showing with 1 additions and 0 deletions
...@@ -3,3 +3,4 @@ android.useAndroidX=true ...@@ -3,3 +3,4 @@ android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
android.enableUnitTestBinaryResources=true android.enableUnitTestBinaryResources=true
buildDir=buildout buildDir=buildout
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment