瀏覽代碼

Update SETUP.md

Nicolas Glassey 4 年之前
父節點
當前提交
68271956db
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      SETUP.md

+ 9 - 0
SETUP.md

@@ -105,3 +105,12 @@ This is handy if one wants to make changes both to files app and library:
 - sync project with gradle files
 
 Now every change in library can be directly used in files app.
+
+### 6. Troubleshooting
+
+#### 1. Compilation fails with "java.lang.OutOfMemoryError: Java heap space" error
+The default settings for Gradle is to limit the compilation to 1GB of heap.
+You can increase that value by :
+- adding `org.gradle.jvmargs=-Xmx4G` to `gradle.properties`
+- running gradlew(.bat) with this command line : `GRADLE_OPTS="-Xmx4G" ./gradlew clean build"
+