I've never tried to use the android builder... but...
Looking through the error message, I'm seeing.
org.gradle.launcher.daemon.client.DaemonConnectionException: Could not receive a message from the daemon.
Caused by: org.gradle.internal.remote.internal.RecoverableMessageIOException: Could not read message from '/127.0.0.1:20065'.
There's a note
You must be registered to see the links
that adding an option for
--no-daemon
might be a solution to something similar. No clue if that is relevant (or even possible) here.
Right at the top it does say
Starting a Gradle Daemon (subsequent builds will be faster)
. So either that isn't working or something on your machine is blocking the ability for the script to talk to the Gradle Daemon (server).
Assuming Gradle (whatever that is) is installed correctly... I'd have to guess at either some sort of permissions issue (run as Administrator...? if you're on Windows)... or a firewall issue... where you're blocking internal connections within your machine by default and therefore the script can't make it's connection on port 20065. (127.0.0.1 is code for localhost... which is "this" computer).
Not sure if that helps much. But if you do find the solution, please come back and say what ultimately solved it.
the66 - This is your expertise... any insights? ... I appreciate it's difficult to narrow things down with so little to go on.