Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)


Bonjour à tous, j’essaye d’exécuter le gradle build mais j’ai cette erreur.

Quelqu’un pourrait m’aider svp ?

Hello,

The error message « Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed) » occurs when the Gradle build daemon terminates unexpectedly. This can happen for a variety of reasons, such as:

  • The daemon was killed by the operating system, which can happen if the system runs out of memory or if the daemon is running for a long time.
  • The daemon crashed due to a bug.
  • The daemon was manually stopped.

To troubleshoot this error, you can try the following:

  1. Always use the latest version of Aos to avoid minor bugs.
  2. Check the system logs to see if any errors occurred around the time the daemon disappeared.
  3. Increase the amount of memory that is allocated to the daemon by adding the following option to your build command:

--no-daemon -Dorg.gradle.jvmargs=-Xmx4096M

This will prevent Gradle from using the daemon and will instead start a new JVM for each build. This can help to avoid the error if the daemon was killed due to a lack of memory.

I hope this information is helpful. Please let me know if you have any other questions or are facing any other problems.

Best regards,

1 « J'aime »

Merci pour votre réponse @bma-axelor
Le soucis c’est que je n’avais pas installé yarn et nodejs. Pour quelqu’un qui n’a pas de compétence en développement c’est quand même judicieux de mettre à jour le fichier d’installation.

Ce sujet a été automatiquement fermé après 30 jours. Aucune réponse n’est permise dorénavant.