Gradle sync failed: peer not authenticated

来源:互联网 发布:centos arm版 编辑:程序博客网 时间:2024/06/06 14:23

4种可能的解决方法,逐个试,不行再搜索:

1.打开/gradle/wrapper/gradle-wrapper.properties,在 distributionUrl中把'https' 修改成 'http',修改后如下:distributionUrl=http://services.gradle.org/distributions/gradle-2.1-all.zip,然后重新sync项目

2.file -> Invalidate Caches / Restart...

3.关闭该项目,在studio开始处import Project(Eclipse, Gradle);

4.File->Setting->Build,Excution,Deployment->Build Tools->Gradle:设置为Use local gradle distribution;

0 0