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

Hi, I hope someone can offer some advice.

Google in their wisdom, have just removed one of my apps due to an old closed beta version that has Path Traversal. The production release was all up to date! It will be a small miracle if I keep my google developer account in 2021 at the rate of unfair removal and suspensions I got this year!! Anyway, this has made me update again, so that I can publish in the closed beta and promote up to production.

I have updated to build 2020.3635 and when I attempt to build a new version I am getting the error Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed).

I have disabled my virus checker, wondering if it was blocking gradle, but it’s not that. I then removed the gradle files so they got updated and reinstalled solar2d, but no luck.
I’m completely stuck! I have attached the JVM crash log, does anyone have any ideas? Thanks.

Running on Windows 10 x64

13:27:31.861  ----- End of the daemon log -----
13:27:31.861  
13:27:31.861  JVM crash log found: file:///C:/Users/Allan.000/AppData/Local/Temp/Corona%20Labs/CLtmpa06036/template/hs_err_pid20744.log
13:27:31.861  
13:27:31.861  FAILURE: Build failed with an exception.
13:27:31.861  
13:27:31.861  * What went wrong:
13:27:31.861  Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
13:27:31.861  
13:27:31.861  * Try:
13:27:31.861  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
13:27:31.861  
13:27:31.861  * Get more help at https://help.gradle.org
13:27:31.861  Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
13:27:32.623  Android build failed (1) after 238 seconds
13:57:04.487  Testing credentials for 'C:\Work\Development\LostLittleSpaceman\keystone.lostlittlespaceman.keystore': 
13:57:05.487  jar signed.
13:57:05.487  Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
13:57:37.635  Excluding specified files from build: 
13:57:37.635     excluding: Icon.png
13:57:37.635     excluding: Icon-Small-*.png
13:57:37.635     excluding: Icon*@2x.png
13:57:37.635  The message received from the daemon indicates that the daemon has disappeared.
13:57:37.635  Build request sent: Build{id=a7f63266-8aef-4891-8b17-860d1cebb3a4, currentDir=C:\Users\Allan.000\AppData\Local\Temp\Corona Labs\CLtmpa21088\template}
13:57:37.635  Attempting to read last messages from the daemon log...
13:57:37.635  Daemon pid: 19412
13:57:37.635    log file: C:\Users\Allan.000\.gradle\daemon\6.5\daemon-19412.out.log
13:57:37.635  ----- Last  20 lines from daemon log file - daemon-19412.out.log -----
13:57:37.635  2020-12-23T13:57:10.397+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry.
13:57:37.635  2020-12-23T13:57:10.397+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
13:57:37.635  2020-12-23T13:57:10.399+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
13:57:37.635  2020-12-23T13:57:10.399+0000 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] resetting idle timer
13:57:37.635  2020-12-23T13:57:10.400+0000 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon is running. Sleeping until state changes.
13:57:37.635  2020-12-23T13:57:10.400+0000 [INFO] [org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy] Daemon is about to start building Build{id=a7f63266-8aef-4891-8b17-860d1cebb3a4, currentDir=C:\Users\Allan.000\AppData\Local\Temp\Corona Labs\CLtmpa21088\template}. Dispatching build started information...
13:57:37.635  2020-12-23T13:57:10.401+0000 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 28: dispatching org.gradle.launcher.daemon.protocol.BuildStarted@1f330e6
13:57:37.635  2020-12-23T13:57:10.403+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment] Configuring env variables: {USERDOMAIN_ROAMINGPROFILE=STUDY, PROCESSOR_LEVEL=6, FP_NO_HOST_CHECK=NO, SESSIONNAME=Console, ALLUSERSPROFILE=C:\ProgramData, PROCESSOR_ARCHITECTURE=x86, PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\, SystemDrive=C:, DIRNAME=C:\Users\Allan.000\AppData\Local\Temp\Corona Labs\CLtmpa21088\template\, USERNAME=Allan, CMD_LINE_ARGS=buildCoronaApp --no-daemon -PconfigureCoronaPlugins=YES -PcoronaBuild=2020.3635 -PcoronaResourcesDir="C:\Program Files (x86)\Corona Labs\Corona\Resources" -PcoronaDstDir="C:\work\Development\LostLittleSpaceman\releases" -PcoronaTmpDir="C:\Users\Allan.000\AppData\Local\Temp\Corona Labs\CLtmpa21088" -PcoronaSrcDir="C:\Work\Development\LostLittleSpaceman\code" -PcoronaAppFileName="Lost Little Spaceman" -PcoronaAppPackage="com.nellyfish.lostlittlespaceman" -PcoronaVersionCode=16 -PcoronaVersionName="1.2.6" -PcoronaKeystore="C:\Work\Development\LostLittleSpaceman\keystone.lostlittlespaceman.keystore" -PcoronaKeystorePassword="##########" -PcoronaKeyAlias="lostlittlespaceman" -PcoronaTargetStore="google" -PcoronaKeyAliasPassword="##########" -PcoronaBuildData="C:\Users\Allan.000\AppData\Local\Temp\Corona Labs\CLtmpa21088\build.data" --console=plain -q, ProgramFiles(x86)=C:\Program Files (x86), FPS_BROWSER_USER_PROFILE_STRING=Default, APP_HOME=C:\Users\Allan.000\AppData\Local\Temp\Corona Labs\CLtmpa21088\template\, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.wlua;.lexe, DriverData=C:\Windows\System32\Drivers\DriverData, PROCESSOR_ARCHITEW6432=AMD64, LUA_DEV=C:\Program Files (x86)\Lua\5.1, ProgramData=C:\ProgramData, ProgramW6432=C:\Program Files, HOMEPATH=\Users\Allan.000, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 44 Stepping 2, GenuineIntel, CORONA_PATH=C:\Program Files (x86)\Corona Labs\Corona\, ProgramFiles=C:\Program Files (x86), PUBLIC=C:\Users\Public, LUA_PATH=;;C:\Program Files (x86)\Lua\5.1\lua\?.luac, windir=C:\WINDOWS, _SKIP=2, LOCALAPPDATA=C:\Users\Allan.000\AppData\Local, USERDOMAIN=STUDY, FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer, LOGONSERVER=\\STUDY, JAVA_HOME=C:\Program Files (x86)\Corona Labs\Corona\jre, PROMPT=$P$G, VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\, OneDrive=C:\Users\Allan.000\OneDrive, =C:=C:\Users\Allan.000\AppData\Local\Temp\Corona Labs\CLtmpa21088\template, APPDATA=C:\Users\Allan.000\AppData\Roaming, JAVA_TOOL_OPTIONS=-Duser.language=en, JAVA_EXE=C:\Program Files (x86)\Corona Labs\Corona\jre/bin/java.exe, CommonProgramFiles=C:\Program Files (x86)\Common Files, Path=C:\Program Files (x86)\Corona Labs\Corona\jre\bin;C:\Program Files (x86)\Corona Labs\Corona\jre\jre\bin;C:\Users\Allan.000\AppData\Roaming\Corona Labs\Corona Simulator\Plugins;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Calibre2\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\Plantronics\Spokes3G\;C:\Program Files (x86)\Common Files\Seagate\SnapAPI\;C:\Program Files (x86)\Lua\5.1;C:\Program Files (x86)\Lua\5.1\clibs;C:\Program Files\PuTTY\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\TortoiseHg\;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Calibre2\;C:\Program Files (x86)\Bluetooth Command Line Tools\bin;C:\Users\Allan.000\AppData\Local\Microsoft\WindowsApps;, OS=Windows_NT, COMPUTERNAME=STUDY, JD2_HOME=C:\Users\Allan.000\AppData\Local\JDownloader 2.0, PROCESSOR_REVISION=2c02, CLASSPATH=C:\Users\Allan.000\AppData\Local\Temp\Corona Labs\CLtmpa21088\template\\gradle\wrapper\gradle-wrapper.jar, CommonProgramW6432=C:\Program Files\Common Files, ComSpec=C:\WINDOWS\system32\cmd.exe, APP_BASE_NAME=gradlew, SystemRoot=C:\WINDOWS, TEMP=C:\Users\Allan.000\AppData\Local\Temp, HOMEDRIVE=C:, USERPROFILE=C:\Users\Allan.000, TMP=C:\Users\Allan.000\AppData\Local\Temp, VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\, CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, NUMBER_OF_PROCESSORS=24}
13:57:37.635  2020-12-23T13:57:10.404+0000 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 26: received class org.gradle.launcher.daemon.protocol.CloseInput
13:57:37.635  2020-12-23T13:57:10.404+0000 [DEBUG] [org.gradle.launcher.daemon.server.DefaultDaemonConnection] thread 26: Received IO message from client: org.gradle.launcher.daemon.protocol.CloseInput@1a936eb
13:57:37.635  2020-12-23T13:57:10.408+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.LogToClient] About to start relaying all logs to the client via the connection.
13:57:37.635  2020-12-23T13:57:10.409+0000 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] The client will now receive all logging from the daemon (pid: 19412). The daemon log file: C:\Users\Allan.000\.gradle\daemon\6.5\daemon-19412.out.log
13:57:37.635  2020-12-23T13:57:10.410+0000 [INFO] [org.gradle.launcher.daemon.server.exec.ForwardClientInput] Closing daemon's stdin at end of input.
13:57:37.635  2020-12-23T13:57:10.410+0000 [INFO] [org.gradle.launcher.daemon.server.exec.ForwardClientInput] The daemon will no longer process any standard input.
13:57:37.635  2020-12-23T13:57:10.411+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon] Requesting daemon stop after processing Build{id=a7f63266-8aef-4891-8b17-860d1cebb3a4, currentDir=C:\Users\Allan.000\AppData\Local\Temp\Corona Labs\CLtmpa21088\template}
13:57:37.635  2020-12-23T13:57:10.411+0000 [LIFECYCLE] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Daemon will be stopped at the end of the build stopping after processing
13:57:37.635  2020-12-23T13:57:10.411+0000 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Stop as soon as idle requested. The daemon is busy: true
13:57:37.635  2020-12-23T13:57:10.412+0000 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon stop has been requested. Sleeping until state changes.
13:57:37.651  2020-12-23T13:57:10.416+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has started executing the build.
13:57:37.651  2020-12-23T13:57:10.417+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] Executing build with daemon context: DefaultDaemonContext[uid=2af6af5f-f793-4fd7-be73-7961dd71b4e2,javaHome=C:\Program Files (x86)\Corona Labs\Corona\jre,daemonRegistryDir=C:\Users\Allan.000\.gradle\daemon,pid=19412,idleTimeout=120000,priority=NORMAL,daemonOpts=-Xmx1G,-Dfile.encoding=windows-1252,-Duser.country=GB,-Duser.language=en,-Duser.variant]

13:57:37.651 ----- End of the daemon log -----

Thanks for looking.

Got it working. Uninstalled all versions of Java and then installed the latest jdk version

For future reference (and others that might not know this) to remove an old channel, simply prepare a new release in that channel and do not add an APK. When you publish the update that channel will disappear.