[Android] Gradle: Increase heapSize, 2G are not enough
Geoffrey Métais
git at videolan.org
Tue Sep 24 18:01:04 CEST 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Sep 24 18:00:05 2019 +0200| [221e235eb1b516763b031b8dc4960feb8d861d94] | committer: Geoffrey Métais
Gradle: Increase heapSize, 2G are not enough
> https://code.videolan.org/videolan/vlc-android/commit/221e235eb1b516763b031b8dc4960feb8d861d94
---
gradle.properties | 2 +-
vlc-android/build.gradle | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gradle.properties b/gradle.properties
index e379606f1..20b2a3462 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -4,4 +4,4 @@ android.databinding.incremental=true
kapt.incremental.apt=true
kapt.use.worker.api=true
kapt.include.compile.classpath=false
-
+org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
diff --git a/vlc-android/build.gradle b/vlc-android/build.gradle
index b7b725727..5b5f9a01a 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -17,7 +17,7 @@ android {
dexOptions {
maxProcessCount 8
- javaMaxHeapSize "2g"
+ javaMaxHeapSize "4g"
preDexLibraries true
}
More information about the Android
mailing list