Skip to content
Permalink
Browse files

Fix OutOfMemoryError when building the first time

Gradle 5.0 change the default memory from 1g to 512m. This caused failed build with `OutOfMemoryError: GC overhead limit exceeded` error. Setting back the memory to 1g fix this issue. See gradle/gradle#7746 (comment)
  • Loading branch information...
jdtremblay committed Mar 14, 2019
1 parent 07ddecb commit aedc347da417284b95622908d1fa554fceed2f4d
Showing with 4 additions and 1 deletion.
  1. +4 −1 gradle.properties
@@ -24,4 +24,7 @@ android.useAndroidX=true
android.enableJetifier=true

# Enable Robolectric to use the same resources as Android
android.enableUnitTestBinaryResources=true
android.enableUnitTestBinaryResources=true

# The default memory is 512m
org.gradle.jvmargs=-Xmx1g

0 comments on commit aedc347

Please sign in to comment.
You can’t perform that action at this time.