When I tried to build my project it failed. The error came “peer not authenticated”. I tried to resync the project but the error remains same. What is this error? Is it a gradle sync error or SDK manager error and how can I deal with it?
Gradle Sync Error Or SDK Manager Error
This error occurred due to some missing certificates
$JAVA_HOME/jre/lib/certificates/cacrets
This error is generated either by the gradle and by the SDK manager both. To deal this error follow the process told:
If you are using any of the proxy servers then remove and try to access the android studio directly. If the direct connection works and resolves the issue then use Keytool to use the same feature under proxy settings
Other than this you can re-install the unmodified JDK. This works for ubuntu users only. Write in command line
$ sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure
And the issue is resolved.