problem description
cordova build android failed
download
download failed all the time after using the cordova build android command
Download https://maven.google.com/com/.
the environmental background of the problems and what methods you have tried
tried to change the version number cordova to 8.0.0 and still failed
related codes
/ / Please paste the code text below (do not replace the code with pictures)
Download https://maven.google.com/com/android/tools/annotations/26.0.0/annotations-26.0.0.jar
Download https://maven.google.com/com/android/tools/external/com-intellij/intellij-core/26.0.0/intellij-core-26.0.0.jar
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project "android".
> Could not resolve all files for configuration ":classpath".
> Could not download protobuf-java.jar (com.google.protobuf:protobuf-java:3.0.0)
> Could not get resource "https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.jar".
> Could not GET "https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.jar".
> Operation timed out (Read failed)
> Could not download ddmlib.jar (com.android.tools.ddms:ddmlib:26.0.0)
> Could not get resource "https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/26.0.0/ddmlib-26.0.0.jar".
> Could not GET "https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/26.0.0/ddmlib-26.0.0.jar".
> Remote host closed connection during handshake
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 20m 14s
(node:21589) UnhandledPromiseRejectionWarning: Error: /Users/yangbin/code/work/demo2/hello/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project "android".
> Could not resolve all files for configuration ":classpath".
> Could not download protobuf-java.jar (com.google.protobuf:protobuf-java:3.0.0)
> Could not get resource "https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.jar".
> Could not GET "https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.jar".
> Operation timed out (Read failed)
> Could not download ddmlib.jar (com.android.tools.ddms:ddmlib:26.0.0)
> Could not get resource "https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/26.0.0/ddmlib-26.0.0.jar".
> Could not GET "https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/26.0.0/ddmlib-26.0.0.jar".
> Remote host closed connection during handshake
* Try: