I don’t see a question, but this looks more like a connectivity issue than a problem with the build.
I do it locally/ Gradlew build is OK. This problem occurs when you put it on another machine. What is the solution