My CI Server configuration is low.
If I use the gradle daemon to build project,It throw a error:
* What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
Then, If I use the gradle-2.14.1 that default close gradle daemon,my task 'publish' is BUILD SUCCESS, but it will append other task to close daemon that BUILD FAILURE.
The message received from the daemon indicates that the daemon has disappeared
FAILURE: Build failed with an exception.
* What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
Of course,if I run the gradle at my macbookpro, everything is OK.
I found the other way to solve the problem, run gradle --stop
, then run gradle <task>
. But it just work for simple task.
So, how to solve this problem?
Adding the flag
-Dorg.gradle.daemon=false
to theGRADLE_OPTS
environment variable solved my issue in my case. Details can be found at : https://docs.gradle.org/current/userguide/gradle_daemon.html#sec:ways_to_disable_gradle_daemon