Getting "peer not authenticated" error when trying to sync


(Bill Luhmann) #1

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.