Error:Cause: Unable to Find Valid Certification Path to Requested Target

Error:Cause: unable to find valid certification path to requested target

This problem might be due to some restricted internet connections...
If you are installing build tools on some restricted network, the required certificates might not install... So try changing the network connection....
Worked for me.....

Gradle sync failed: Cause: unable to find valid certification path to requested target on MacOS

I've been stuck with the exact same bug for several days, and like you I tried pretty much everything.

Finally I noticed something in Android Studio. I went to the Http Proxy preference tab and I saw a message saying

You have JVM property "https.proxyHost" set to "localhost"....

I tried to override this value by putting the line :

systemProp.https.proxyHost=

In my project gradle.properties file and tadaaa ! It works, I don't really understand what happened though...

Hoping to be helpful ;)



Related Topics



Leave a reply



Submit