Android Studio/Intellij、Gradle 错误:原因:对等方未通过身份验证 [英] Android Studio / Intellij, Gradle Error:Cause: peer not authenticated

查看:30
本文介绍了Android Studio/Intellij、Gradle 错误:原因:对等方未通过身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前正在与 IntelliJ 吵架.该死的东西不会下载 Gradle 2.1

Having a fight with IntelliJ at the moment. The darn thing won't download Gradle 2.1

我在 GitHub 上托管了一个 Android 项目,我已将其克隆到我的笔记本电脑上.我有可用的 SSL 证书,我知道这一点,因为我可以使用 SSL 从谷歌下载 SDK 软件,我也可以下载 Gradle 1.12.我从 IntelliJ 收到的消息是相当臭名昭著的 Error:Cause: peer not authenticated 错误.

I have an Android project hosted on GitHub, which I have cloned to my laptop. I have got working SSL certificates, I know this as I can download SDK software from google using SSL, and I can also download Gradle 1.12. The message I have received from IntelliJ is the rather infamous Error:Cause: peer not authenticated error.

从运行 IntelliJ 的终端我得到这个:

From the terminal running IntelliJ I get this:

    * What went wrong:
A problem occurred configuring root project 'SomeAndroidProject'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:0.13.0.
     Required by:
         :SomeAndroidProject:unspecified
      > Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/gradle/0.13.0/gradle-0.13.0.pom'.
         > peer not authenticated

我在互联网上进行了广泛的搜索,但无济于事.请帮助我明智的大师!

I have search far and wide across the internet, with no avail. Please help me wise SO guru's!

推荐答案

在 build.gradle 中更改您的存储库语法如下.请参阅以下问题.

Change your repositories syntax in build.gradle as following. See following question.

repositories {
    jcenter {
        url "http://jcenter.bintray.com/"
    }
}

这篇关于Android Studio/Intellij、Gradle 错误:原因:对等方未通过身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆