Tag Archives: gradle sync

[Solved] gradle sync Error: “PKIX path building failed” and “unable to find valid certification path to requested target”

I encountered this problem when I was in gradle sync, which led to the failure of sync, so I couldn’t update the online Maven package, resulting in the red of idea

Gradle sync reports the following error

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Relevant discussions can be found on the Internet at:
...

I encountered this problem because Charles opened the MacOS proxy, which led to the failure of certificate verification. Just turn off Charles’s MacOS proxy (windows should also turn off the computer proxy)