【发布时间】:2015-07-24 23:47:19
【问题描述】:
我正在尝试使用 Cordova 为 android 构建 Sencha Touch 应用程序。但是,在 gradle 构建开始后,我在尝试连接到 maven 存储库时遇到连接错误:
[INF] [shellscript] Running: C:\xxx\gradlew cdvBuildDebug -b C:\xxx\application\cordova\platforms\android\build.gradle -Dorg.gradle.daemon=true
[INF] [shellscript]
[INF] [shellscript] FAILURE: Build failed with an exception.
[INF] [shellscript]
[INF] [shellscript] * What went wrong:
[INF] [shellscript] A problem occurred configuring root project '''android'''.
[INF] [shellscript] > Could not resolve all dependencies for configuration ''':classpath'''.
[INF] [shellscript] > Could not resolve com.android.tools.build:gradle:1.0.0+.
[INF] [shellscript] Required by:
[INF] [shellscript] :android:unspecified
[INF] [shellscript] > Failed to list versions for com.android.tools.build:gradle.
[INF] [shellscript] > Unable to load Maven meta-data from https://repo1
.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml.
[INF] [shellscript] > Could not GET '''https://repo1.maven.org/maven
2/com/android/tools/build/gradle/maven-metadata.xml'''.
[INF] [shellscript] > Connection to https://repo1.maven.org refused
我想这与我必须在办公室连接的公司代理有关 - 但是我不确定如何配置 Gradle 以通过此代理进行连接,因为它由 Cordova 执行,而 Cordova 本身也在执行通过 Sencha Cmd。
有没有办法用 Sencha 配置代理?
【问题讨论】:
标签: android cordova maven extjs gradle