Sfoglia il codice sorgente

Merge pull request #7889 from Webbeh/patch-1

Update SETUP.md
Tobias Kaminsky 4 anni fa
parent
commit
494aefad4a
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  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"
+