无法启动cordova离子项目:无法在VS2015中加载Maven元数据

时间:2015-12-15 09:05:45

标签: android cordova maven visual-studio-2015 ionic

我对移动开发非常陌生,我正试图在VS2015的cordova Ionic项目中抢先一步。我安装了所有必要的组件并启动了一个类型为离子标签模板的新项目(我从NuGet获得)。在编译项目时,我遇到了下面给出的错误,我无法绕过这个。欢迎任何帮助。

PS:我在公司代理人后面工作。

                    Running: C:\Development\CordovaIonicDemo\CordovaIonicDemoUI\platforms\android\gradlew clean -b C:\Development\CordovaIonicDemo\CordovaIonicDemoUI\platforms\android\build.gradle -Dorg.gradle.daemon=true (TaskId:6)
1>                      (TaskId:6)
1>                     FAILURE: Build failed with an exception. (TaskId:6)
1>                      (TaskId:6)
1>                     * What went wrong: (TaskId:6)
1>                     A problem occurred configuring root project 'android'. (TaskId:6)
1>                     > Could not resolve all dependencies for configuration ':classpath'. (TaskId:6)
1>                        > Could not resolve com.android.tools.build:gradle:1.0.0+. (TaskId:6)
1>                          Required by: (TaskId:6)
1>                              :android:unspecified (TaskId:6)
1>                           > Failed to list versions for com.android.tools.build:gradle. (TaskId:6)
1>                              > Unable to load Maven meta-data from https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml. (TaskId:6)
1>                                 > Could not GET 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml'. (TaskId:6)
1>                                    > Connection to https://repo1.maven.org refused (TaskId:6)
1>                      (TaskId:6)
1>                     * Try: (TaskId:6)
1>                     Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. (TaskId:6)
1>                      (TaskId:6)
1>                     BUILD FAILED (TaskId:6)
1>                      (TaskId:6)
1>                     Total time: 2.536 secs (TaskId:6)
1>                     Picked up _JAVA_OPTIONS: -Xmx512M (TaskId:6)
1>                      (TaskId:6)

0 个答案:

没有答案