org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':compileProductionExecutableKotlinJs'
error while compiling my project. I tried deleting build and gradle folder and rebuilding but it didn't fix the issue. Attached in the thread is a snippet of the complete stack trace. Has anyone experienced something similar?
Thanks in advance
Task :compileProductionExecutableKotlinJs
Custom actions are attached to task ':compileProductionExecutableKotlinJs'.
Caching disabled for task ':compileProductionExecutableKotlinJs' because:
Build cache is disabled
Task ':compileProductionExecutableKotlinJs' is not up-to-date because:
Task has failed previously.
The input changes require a full rebuild for incremental task ':compileProductionExecutableKotlinJs'.
Using Kotlin/JS IR backend
i: found daemon on port 17511 (1360180 ms old), trying to connect
i: connected to the daemon
e: java.lang.OutOfMemoryError: GC overhead limit exceeded
Restoring task outputs to pre-compilation state
> Task :compileProductionExecutableKotlinJs FAILED
:compileProductionExecutableKotlinJs (Thread[Execution worker for ':',5,main]) completed. Took 1 mins 3.431 secs.
java.lang.OutOfMemoryError: GC overhead limit exceeded
Restoring task outputs to pre-compilation state
t
tapchicoma
03/03/2022, 8:35 AM
you don't have enough memory for Kotlin daemon, try to increase it via kotlin.daemon.jvmargs
p
Partho Paul
03/03/2022, 8:55 AM
This works. Thank you!
v
Vampire
03/03/2022, 10:12 AM
And for the future, please don't crosspost.
Choose one channel and stay there, or at most post a link to another channel.
Otherwise you waste the time of everyone reading your post twice and you also get split discussions where a user in one channel might for example not be aware that the question is already answered / issue is already solved in a different channel.