David, thanks for your reply.
I tried to disable daemon on Jenkins by specifying org.gradle.daemon=false
in ~/.gradle/gradle.properties
but still get the same error.
I also tried to run ./gradlew clean --no-daemon --stacktrace --debug
NO LUCK.
if I ran ./gradlew --stop
it told me no gradle daemons are running.
I’m confused