Android Studio / Intellij, Gradle Error:Cause: peer not authenticated
Change your repositories syntax in build.gradle as following. See following question.
repositories {
jcenter {
url "http://jcenter.bintray.com/"
}
}
I've fixed this issue by adding the following to my build.gradle:
repositories {
maven {
url 'http://repo1.maven.org/maven2';
}
}
Once done, try syncing and rebuilding your project. Hope this was helpful.
you should import the certificate:
First of all download the certificate (.cer) from this url, Help is here
Copy it to the path JDK_HOME/jre/lib/security
Then with command prompt targeted to above location, run the following command:
keytool -import -alias git -file <cert_file_name_you_exported.cer> -keystore cacerts -storepass changeit
Type yes if it prompts for approval, after that open the desired IDEA and have fun :)
If this doesn't help, try importing the certificate to JRE/lib/security/cacerts
, It's totally depend on the build path of the IDEA you are using