A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond :getNativeLibs FAILED.
Process 'command 'hg'' finished with non-zero exit value 255
gradlew.bat assemble
:compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :getNativeLibs abort: error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond :getNativeLibs FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':getNativeLibs'.
Process 'command 'hg'' finished with non-zero exit value 255 Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED
Total time: 1 mins 13.079 secs
I think the command hg is not installed. On Ubuntu 16.10, I did sudo apt install mercurial and it worked.