l12356332 发表于 2016-3-14 13:55:59

ionic build android 报错

执行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"

l12356332 发表于 2016-3-14 14:07:51

{:4_87:}我是新手。帮帮忙。自己顶

l12356332 发表于 2016-3-14 14:41:33

求帮助求帮助求帮助求帮助求帮助求帮助

l12356332 发表于 2016-3-14 14:47:59

jdk版本号

l12356332 发表于 2016-3-14 14:50:22

sdk版本好

l12356332 发表于 2016-3-14 14:51:25

npm版本号

l12356332 发表于 2016-3-14 14:52:25

cordova版本

l12356332 发表于 2016-3-14 14:53:35

ionic版本

l12356332 发表于 2016-3-14 14:54:23

node版本

ionicwang 发表于 2016-3-14 15:06:49

cordova成功了吗?

cordova成功的话就直接用cordova整
页: [1] 2
查看完整版本: ionic build android 报错