Android的工作室摇篮构建失败。错误:原因:同行不被认证 [英] Android Studio Gradle build failed. Error:Cause: peer not authenticated
问题描述
我已经创建了一个项目,摇篮同步成功合作。
I have already created one project and gradle sync worked successfully.
当我试图创建另一个项目失败,并给出了错误信息
When I try to create another project it fails and gives the error message that
Gradle '<ProjectName>' project refresh failed
Error:Cause: peer not authenticated.
我已经安装SDK,摇篮给摇篮VM选项
I have setup SDK, gradle gave gradle VM options
-Dhttp.proxyHost=<proxy.address> -Dhttp.proxyPort=<port> -Dhttp.proxyUser=<username> -Dhttp.proxyPassword=<password>
和在HTTP代理选项卡还我已经给出了正确的选项。
And in HTTP proxy tab also I have given the correct options.
谁能帮我?
推荐答案
这是为我工作的解决方案。张贴在这里的情况下,它可以帮助别人。
This was the solution that worked for me. Posting here in case it helps someone.
摇篮的版本是不正确的的项目的build.gradle文件。
Gradle version was not correct in project build.gradle file.
我
类路径com.android.tools.build:gradle:1.0.0
classpath 'com.android.tools.build:gradle:1.0.0'
,但这需要是
类路径com.android.tools.build:gradle:1.1.0
classpath 'com.android.tools.build:gradle:1.1.0'
//编辑 这应被更新到摇篮工具的最新版本。 1.1.0在这个答案写时是正确的。
// Edit This should be updated to the newest version of gradle tools. 1.1.0 was correct at the time this answer was written.
这篇关于Android的工作室摇篮构建失败。错误:原因:同行不被认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!