iónica empaquetado como un proyecto utilizando Cordova androide apk Times "No se pudo descargar guava.jar" solución equivocada

iónica empaquetado como un proyecto utilizando Cordova androide apk Times "No se pudo descargar guava.jar" solución equivocada

problema de fondo

Medio Ambiente para la última CLI iónica 6.3.0
de realizar un comando de embalaje

ionic cordova build android

los resultados

Starting a Gradle Daemon (subsequent builds will be faster)

BUILD SUCCESSFUL in 9s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Downloading https://services.gradle.org/distributions/gradle-4.10.3-all.zip
...........10%...........20%...........30%...........40%............50%...........60%...........70%...........80%...........90%............100%

Welcome to Gradle 4.10.3!

Here are the highlights of this release:
 - Incremental Java compilation by default
 - Periodic Gradle caches cleanup
 - Gradle Kotlin DSL 1.0-RC6
 - Nested included builds
 - SNAPSHOT plugin versions in the `plugins {}` block

For more details see https://docs.gradle.org/4.10.3/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not download guava.jar (com.google.guava:guava:26.0-jre)
      > Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/26.0-jre/guava-26.0-jre.jar'.
         > Read timed out
   > Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-reflect:1.3.11)
      > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.11/kotlin-reflect-1.3.11.jar'.
         > Read timed out

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 5s
E:\ionicworkspace\mes\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 artifacts for configuration ':classpath'.
   > Could not download guava.jar (com.google.guava:guava:26.0-jre)
      > Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/26.0-jre/guava-26.0-jre.jar'.
         > Read timed out
   > Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-reflect:1.3.11)
      > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.11/kotlin-reflect-1.3.11.jar'.
         > Read timed out

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 5s

problema Causa

El último paquete debido a la necesidad iónico para uso Gradle, mi equipo es la última versión del Gradle Gradle-6.2.2-bin, pero el proyecto se necesita es empaquetado versión 4.10.3, las incoherencias de versión causaron problemas.

La resolución de problemas

Descargar Gradle-4.10.3-bin, y modificar las variables de entorno en los puntos de ruta Gradle al directorio bin de este comunicado, volver a abrir una ventana de cmd para empaquetarlo.

Publicados 138 artículos originales · ganado elogios 303 · vistas 120 000 +

Supongo que te gusta

Origin blog.csdn.net/zlbdmm/article/details/105076928
Recomendado
Clasificación