Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android peer not authenticated

Everything has been working, only today i started to get an error message, and i can't even "Sync Project with Gradle files" from Android Studio. The only thing i have changed was ... the office :D

Error:A problem occurred configuring project ':app'. Could not download library.jar (com.mcxiaoke.volley:library:1.0.16) Could not GET 'https://jcenter.bintray.com/com/mcxiaoke/volley/library/1.0.16/library-1.0.16.jar'. peer not authenticated

And my build.grade

buildscript {
    repositories {
        jcenter()
        maven { url 'http://download.crashlytics.com/maven'}
        maven { url 'http://dl.bintray.com/amulyakhare/maven'}
    }

    dependencies {
        classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
    }
}
....

gradle-wrapper.properties:

distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-all.zip

I also tried with http instead of https, but still the same problem.

Does anyone have similar problem?

like image 867
Bugdr0id Avatar asked Jun 12 '15 09:06

Bugdr0id


People also ask

What is peer not authenticated?

This exception indicates that the Java application's truststore was unable to validate the certificate chain. This can occur when the external target's certificates have not been imported into the truststore or one or more of the certificates have expired.

Could not get resource peer not authenticated?

If you see "peer not authenticated errors , it does not necessarily mean that the application does not hold a valid certificate. It also could mean that connections are being reset by the firewall, load balancer, or web servers. Try (re)starting the application with the Administator privilege.


1 Answers

Temporary solution

Add this to build.gradle

repositories {
    mavenLocal()
    maven {
        name "jcenter"
        url "http://jcenter.bintray.com/"
    }
}
like image 167
MariuszS Avatar answered Oct 04 '22 08:10

MariuszS