ionic build android遇到奇怪的问题
请问有谁遇到过这样的问题,如何解决?D:\Android\ionicApp>ionic build android
Running command: D:\Develop\nodejs\node.exe D:\Android\ionicApp\hooks\after_prep
are\010_add_platform_class.js D:\Android\ionicApp
add to body class: platform-android
Running command: cmd "/s /c "D:\Android\ionicApp\platforms\android\cordova\build
.bat""
ANDROID_HOME=D:\Develop\Android\android-sdk
JAVA_HOME=d:\Java\jdk1.6.0
Running: D:\Android\ionicApp\platforms\android\gradlew cdvBuildDebug -b D:\Andro
id\ionicApp\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:1.0.0+.
BUILD FAILED
Total time: 2.026 secs
Required by:
:android:unspecified
> Failed to list versions for com.android.tools.build:gradle.
> Unable to load Maven meta-data from https://repo1.maven.org/maven2/co
m/android/tools/build/gradle/maven-metadata.xml.
> Could not GET 'https://repo1.maven.org/maven2/com/android/tools/bu
ild/gradle/maven-metadata.xml'.
> peer not authenticated
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
D:\Android\ionicApp\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "D:\Android\ionicApp\platforms\an
droid\gradlew cdvBuildDebug -b D:\Android\ionicApp\platforms\android\build.gradl
e -Dorg.gradle.daemon=true"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 8
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 8
at ChildProcess.whenDone (C:\Users\lorry\AppData\Roaming\npm\node_modules\co
rdova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)
D:\Android\ionicApp> 也看不出什么问题
1.jdk用 1.7-1.8版本
2.sdk更新到最新的sdk或者指定版本安装cordova安装个低版本的,
你可以截一下图发上来 jdk换成1.8版本解决问题了{:4_86:},多谢大神热情的帮助。
bulesky_2008 发表于 2015-6-16 23:41
jdk换成1.8版本解决问题了,多谢大神热情的帮助。
{:4_86:}{:4_86:}{:4_86:}
页:
[1]