I'm trying to build a Sencha Touch app for android using Cordova. However, after the gradle build kicks off I get a connection error when trying to connect to the maven repo:
[INF] [shellscript] Running: C:xxxgradlew cdvBuildDebug -b C:xxxapplicationcordovaplatformsandroiduild.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
I would imagine this is related to the corporate proxy I have to connect through in my office - however I'm not sure how to configure Gradle to connect via this proxy since it is being executed by Cordova, which is itself being executed by Sencha Cmd.
Is there a way to configure a proxy with Sencha?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…