离子构建因异常而失败

时间:2015-07-23 20:03:49

标签: cordova android-gradle ionic phonegap-build build.gradle

  

我使用了代理。当我运行离子构建命令时,我遇到了错误。我把错误信息写在后面。

D:\MyApp\myone>ionic build android
Running command: "C:\Program Files\nodejs\node.exe" D:\MyApp\myone\hooks\after_p
repare\010_add_platform_class.js D:\MyApp\myone
add to body class: platform-android
Running command: cmd "/s /c "D:\MyApp\myone\platforms\android\cordova\build.bat"
"
ANDROID_HOME=C:\Users\rajitha\AppData\Local\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79
Running: D:\MyApp\myone\platforms\android\gradlew cdvBuildDebug -b D:\MyApp\myon
e\platforms\android\build.gradle -Dorg.gradle.daemon=true

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:0.9.0.
     Required by:
         :android:unspecified
      > Could not GET 'https://repo1.maven.org/maven2/com/android/tools/build/gr
adle/0.9.0/gradle-0.9.0.pom'.
         > repo1.maven.org

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

BUILD FAILED

Total time: 27.08 secs
  

是否由于proxy而发生此错误。我可以解决这个问题。提前谢谢。

0 个答案:

没有答案