本文介绍了Android的工作室/的IntelliJ,摇篮错误:原因:同行不被认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

具有此刻与intelliji一拼。该混账东西不会下载我的摇篮2.1。

Having a fight with intelliji at the moment. The darn thing won't download me gradle 2.1.

我有托管在GitHub上的Andr​​oid项目,我已经克隆到我的笔记本电脑。我有工作的SSL证书,我知道这是我可以从谷歌使用SSL下载SDK软件,我也可以下载摇篮1.12。我不能下载的摇篮2.1。 (我可以用我的网页浏览器下载摇篮2.1)

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. What I cannot download is gradle 2.1. (I can download gradle 2.1 using my web browser)

我是从的IntelliJ:收到的信息是相当臭名昭著的错误:原因:同行不被认证错误。

The message I have recieved 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 'XXXXXXX'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:0.13.0.
     Required by:
         :XXXXXXX:unspecified
      > Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/gradle/0.13.0/gradle-0.13.0.pom'.
         > peer not authenticated

(该XXXXXX的是隐藏应用程序的身份 - 这是不是一个错误)

(The XXXXXX's are to hide the identity of the application - it's not an error)

这还没有得到一个原因失败 - 但它确实。我有搜索远播在互联网上,有没有用。请帮我明智的SO大师的!

It hasn't got a reason to fail - yet it does.I have search far and wide across the internet, with no avail. Please help me wise SO guru's!

推荐答案

在build.gradle更改库的语法如下。请参见下面的question.

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

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

这篇关于Android的工作室/的IntelliJ,摇篮错误:原因:同行不被认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 20:05