# Getting "peer not authenticated" error when trying to sync

**URL:** <https://discuss.gradle.org/t/getting-peer-not-authenticated-error-when-trying-to-sync/17662>\
**Category:** Help/Discuss\
**Created:** [May 19, 2016, 7:24pm UTC](https://discuss.gradle.org/t/getting-peer-not-authenticated-error-when-trying-to-sync/17662 "2016-05-19T19:24:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluhmann](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@bluhmann](https://discuss.gradle.org/u/bluhmann)\
**Post date:** [May 19, 2016, 7:24pm UTC](https://discuss.gradle.org/t/getting-peer-not-authenticated-error-when-trying-to-sync/17662/1 "2016-05-19T19:24:11Z")

</div>

I’m at an absolute loss as to what’s going on here, and can’t seem to find much on the subject. Here is my project build.gradle:

```
// Top-level build file where you can add configuration options common to all sub-projects/modules.
    buildscript {
        repositories {
             jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

```

I continually get the following error:

```
Gradle 'android_studio' project refresh failed
     Error: Cause: peer not authenticated

```

I’ve tried changing the gradle version number in the classpath to 2.1.0 to no avail, as well as changing the `distributionUrl` to be http instead of https also to no avail.

I would appreciate any help that you guys could give me, this error is driving me crazy and I can’t get any work done since I can’t build my project with this error.
