Failed to launch JVM in compose desktop

Hi guys I've been making an app for desktop and android in compose multiplarform and i've been tested it running it in android studio (composeApp:run) but when i try to build it with gradlew packackeExe i get an error window "Failed to launch JVM". I tried to fix it with some fixes i found online but i don't get it to work. The android version works fine and i can still run it trough android studio so i don't know what it is.

Do you know any possible fix to this?

https://preview.redd.it/iv1pdn2siobf1.png?width=343&format=png&auto=webp&s=807d994901b88c16231fefa415d33f3454fc14a6

Posted Jul 8, 2025, 4:43 PM UTC

36
Loading comments…