Unable to start the daemon process after upgrade from 7.4.2 to 8.7.3

My developers updated their Android projects from gradle:7.4.2 to gradle:8.7.3 and now all my builds fail.
The error is:

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.For more details on the daemon, please refer to https://docs.gradle.org/8.12/userguide/gradle_daemon.html in the Gradle documentation.
Process command line: C:\Program Files\Java\jdk-23\bin\java.exe --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp C:\Users\svc_teamcitybuild\.gradle\wrapper\dists\gradle-8.12-all\ejduaidbjup3bmmkhw3rie4zb\gradle-8.12\lib\gradle-daemon-main-8.12.jar -javaagent:C:\Users\svc_teamcitybuild\.gradle\wrapper\dists\gradle-8.12-all\ejduaidbjup3bmmkhw3rie4zb\gradle-8.12\lib\agents\gradle-instrumentation-agent-8.12.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.12
Please read the following process output to find out more:
-----------------------

FAILURE: Build failed with an exception.

* What went wrong:
Could not initialize native services.

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

* Exception is:
org.gradle.internal.service.ServiceCreationException: Could not initialize native services.
	at org.gradle.internal.nativeintegration.services.NativeServices.initialize(NativeServices.java:225)
	at org.gradle.internal.nativeintegration.services.NativeServices.initializeOnDaemon(NativeServices.java:183)
	at org.gradle.launcher.daemon.bootstrap.DaemonMain.doAction(DaemonMain.java:113)
	at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:52)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:72)
	at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:39)
	at org.gradle.launcher.daemon.bootstrap.GradleDaemon.main(GradleDaemon.java:22)
Caused by: net.rubygrapefruit.platform.NativeException: Failed to initialise native integration.
	at org.gradle.fileevents.FileEvents.init(FileEvents.java:48)
	at org.gradle.internal.nativeintegration.services.NativeServices$NativeFeatures$1.initialize(NativeServices.java:111)
	at org.gradle.internal.nativeintegration.services.NativeServices.initializeFeatures(NativeServices.java:267)
	at org.gradle.internal.nativeintegration.services.NativeServices.initialize(NativeServices.java:223)
	... 8 more
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\svc_teamcitybuild\.gradle\native\0.2.5\x86_64-windows-gnu\gradle-fileevents.dll: The specified procedure could not be found
	at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
	at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2402)
	at java.base/java.lang.Runtime.load0(Runtime.java:852)
	at java.base/java.lang.System.load(System.java:2028)
	at org.gradle.fileevents.FileEvents.init(FileEvents.java:35)
	... 11 more

Sounds to me like you should report an issue about this.

Isn’t that what I’ve done here?

No, this is a community forum where users talk to each other and users like me help other users with their Gradle problems.

The issue tracker is at GitHub · Where software is built

I followed the link from the actual error message to:

And on that page there was only:
“Ask for help”, which brought me here.

I’ll check that GitHub page.

The link for “Troubleshoot” on the page you mentioned also has a link to the issue tracker.
Also, it is fine that you came here, you got help by being redirected to the right spot, didn’t you? :slight_smile:

I posted on the issue tracker.
We will see if I get help.
Thanks.

1 Like

Seems the latest version of Gradle doesn’t work with Windows Server 2016.
Only with 2019 and later.

1 Like

It would probably make sense to also post the issue link here, so that future readers can follow it. :slight_smile:

1 Like