现象:
* What went wrong:
A problem occurred configuring root project 'Android'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not download artifact 'gradle-core.jar (com.android.tools.build:gradle-core:1.2.2)'
> Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle-core/1.2.2/gradle-core-1.2.2.jar'.
> peer not authenticated
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
解决方法:
修改build.gradle中的repositories为:
repositories {
maven {
url "http://repo1.maven.org/maven2"
}
}