Skip to content

Commit dd474ef

Browse files
committed
Configure jvm memory settings
By default, Gradle uses '-Xmx512m -XX:MaxMetaspaceSize=512m'. According to Gradle's monitoring tools, it's not enough. The original error: The Daemon will expire after the build after running out of JVM Metaspace.
1 parent cdedfd7 commit dd474ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ android.defaults.buildfeatures.buildconfig=true
22
android.enableJetifier=true
33
android.nonFinalResIds=false
44
android.nonTransitiveRClass=false
5-
android.useAndroidX=true
5+
android.useAndroidX=true
6+
org.gradle.jvmargs=-Xmx768m -XX:MaxMetaspaceSize=512m

0 commit comments

Comments
 (0)