用ionic命令行ionic build android打包安卓包,可是一直打包不成功,原因是
D:\VScodeProject\chapter08\myApp>ionic build android
Running command: "C:\Program Files\nodejs\node.exe" D:\VScodeProject\chapter08\myApp\hooks\after_prepare\010_add_platform_class.js
D:\VScodeProject\chapter08\myApp
add to body class: platform-android
ANDROID_HOME=D:\android-sdk
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_80
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'.
> peer not authenticated 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: 8.848 secs
Error: Error code 1 for command: cmd with args: /s,/c,"D:\VScodeProject\chapter08\myApp\platforms\android\gradlew cdvBuildDebug -b D:\VScodeProject\chapter08\myApp\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
在CSDN上看到有人说是文件夹中文命名的问题,我的用户名是中文:,用户名更改不了,难受。有大佬知道其他的解决方案吗?