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:
- Always use the latest version of Aos to avoid minor bugs.
- Check the system logs to see if any errors occurred around the time the daemon disappeared.
- 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,