|
执行ionic build android 报错,错误内容
E:\Android\myApp>ionic build android
Running command: "C:\Program Files (x86)\nodejs\node.exe" E:\Android\myApp\hooks\after_prepare\010_add_platform_class.js E:\Android\myApp
add to body class: platform-android
ANDROID_HOME=E:\Android\sdk
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
Invalid value for java system property 'http.proxyPort': Proxy. Default port '80' will be used.
Invalid value for java system property 'http.proxyPort': Proxy. Default port '80' will be used.
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:1.5.0.
Required by:
:android:unspecified
> Could not GET 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/1.5.0/gradle-1.5.0.pom'.
> Proxy
BUILD FAILED
Total time: 3.975 secs
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
ERROR building one of the platforms: Error code 1 for command: cmd with args: /s,/c,"E:\Android\myApp\platforms\android\gradlew cdvBuildDebug -b E:\Android\myApp\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
You may not have the required environment or OS to build this project
Error: Error code 1 for command: cmd with args: /s,/c,"E:\Android\myApp\platforms\android\gradlew cdvBuildDebug -b E:\Android\myApp\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
|
|