Gradle Sync Error Or SDK Manager Error

Asked By 50 points N/A Posted on -
qa-featured

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?

SHARE
Answered By 0 points N/A #317761

Gradle Sync Error Or SDK Manager Error

qa-featured

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.

Related Questions