I have a good sized Compose MP Android/iOS app tha...
# compose-desktop
t
I have a good sized Compose MP Android/iOS app that I added a jvm/desktop target to. It runs fine from IDE, but when I try to build package with packageReleaseDmg, it causes the IDE to run out of memory and crash. Is this a known issue? I am using Kotlin 2.2.10 and Compose MP 1.9.0-beta03. Thanks.
a
Give gradle more memory
t
I give him 4GB already. How hungry is he? 🙂
Copy code
org.gradle.jvmargs = -Xmx4g -XX:MaxMetaspaceSize=4g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
a
Depends on the size of your project. I have
Copy code
kotlin.daemon.jvmargs=-Xmx4G
in my
gradle.properties
for a medium-sized app.