Could not start gradle demon

~/gradle-8.10/bin $ /data/data/com.icst.android.appstudio/files/home/gradle-8.10/bin/gradle --stacktrace --debug --info                                  Initialized native services in: /data/data/com.icst.android.appstudio/files/home/.gradle/native
Received JVM installation metadata from '/data/data/com.icst.android.appstudio/files/usr/lib/jvm/java-17-openjdk': {JAVA_HOME=/data/data/com.icst.android.appstudio/files/usr/lib/jvm/java-17-openjdk, JAVA_VERSION=17-internal, JAVA_VENDOR=N/A, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=17-internal+0-adhoc..src, VM_NAME=OpenJDK Server VM, VM_VERSION=17-internal+0-adhoc..src, VM_VENDOR=Oracle Corporation, OS_ARCH=arm}
Removing 0 daemon stop events from registry        Starting a Gradle Daemon (subsequent builds will be faster)
Starting process 'Gradle build daemon'. Working directory: /data/data/com.icst.android.appstudio/files/home/.gradle/daemon/8.10 Command: /data/data/com.icst.android.appstudio/files/usr/lib/jvm/java-17-openjdk/bin/java --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=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.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /data/data/com.icst.android.appstudio/files/home/gradle-8.10/lib/gradle-daemon-main-8.10.jar -javaagent:/data/data/com.icst.android.appstudio/files/home/gradle-8.10/lib/agents/gradle-instrumentation-agent-8.10.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.10
An attempt to start the daemon took 0.177 secs.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred starting process 'Gradle build daemon'

* Try:
> Run with --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.process.internal.ExecException: A problem occurred starting process 'Gradle build daemon'
        at org.gradle.process.internal.DefaultExecHandle.execExceptionFor(DefaultExecHandle.java:241)
        at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:218)
        at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:396)
        at org.gradle.process.internal.ExecHandleRunner.lambda$run$3(ExecHandleRunner.java:102)
        at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:85)
        at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:101)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: net.rubygrapefruit.platform.NativeException: Could not start '/data/data/com.icst.android.appstudio/files/usr/lib/jvm/java-17-openjdk/bin/java'
        at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:27)
        at org.gradle.process.internal.ExecHandleRunner.startProcess(ExecHandleRunner.java:122)
        at org.gradle.process.internal.ExecHandleRunner.lambda$run$0(ExecHandleRunner.java:80)
        at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:85)
        at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:79)
        ... 5 more
Caused by: java.io.IOException: Cannot run program "/data/data/com.icst.android.appstudio/files/usr/lib/jvm/java-17-openjdk/bin/java" (in directory "/data/data/com.icst.android.appstudio/files/home/.gradle/daemon/8.10"): error=0,
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
        at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
        ... 9 more
Caused by: java.io.IOException: error=0,
        at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
        at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
        at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
        ... 11 more

~/gradle-8.10/bin $ java --version
openjdk 17-internal 2021-09-14
OpenJDK Runtime Environment (build 17-internal+0-adhoc..src)
OpenJDK Server VM (build 17-internal+0-adhoc..src, mixed mode)
~/gradle-8.10/bin $ /data/data/com.icst.android.appstudio/files/home/gradle-8.10/bin/gradle --version 
------------------------------------------------------------
Gradle 8.10
------------------------------------------------------------

Build time:    2024-08-14 11:07:45 UTC
Revision:      fef2edbed8af1022cefaf44d4c0514c5f89d7b78

Kotlin:        1.9.24
Groovy:        3.0.22
Ant:           Apache Ant(TM) version 1.10.14 compiled on August 16 2023
Launcher JVM:  17-internal (Oracle Corporation 17-internal+0-adhoc..src)
Daemon JVM:    /data/data/com.icst.android.appstudio/files/usr/lib/jvm/java-17-openjdk (no JDK specified, using current Java home)
OS:            Linux 4.9.190-perf-g726745c074e7 arm

~/gradle-8.10/bin $

It seems that the Gradle CLI cannot start the Gradle Daemon JVM for some reason.
Maybe it is caused by you trying to run that on Android.
Or it is again the JDK you are using that is misbehaving and not able to fork a process.
:man_shrugging:
It fails in native code in the JDK to fork that process and does not provide much information besides error=0.