. How do I higher the memory limit for the task/project? I have tried
org.gradle.jvmargs=-Xmx4g
in the gradle.properties. I use gradle 5.1.1
l
louiscad
06/22/2019, 9:14 AM
Just kill the gradle daemon (by closing the Java processes) and retry. There was probably a memory leak in it.
j
Jurriaan Mous
06/22/2019, 9:32 AM
I closed the gradle daemons and it still happens afterwards. Also when I run konan outside of gradle with the same argments as gradle. It will only succeed if I give it more than 4gb (8gb I tried and then it succeeded) But how can I set the memory of the gradle task?
t
Thomas
06/22/2019, 10:03 AM
I have a similar issue. If I run my “pack for xcode” task from Android Studio it throws this exception:
Copy code
e: java.lang.OutOfMemoryError: Java heap space
However, if I run the gradle task from the terminal (like Xcode) I do not get the exception.