Gradle Sync is getting failed

Hi All I am getting the following error

  • What went wrong:
    A problem occurred configuring root project ‘My Application’.

Could not resolve all artifacts for configuration ‘:classpath’.
Could not resolve
Required by:
project :
Could not resolve
Could not get resource ‘’.
Could not GET ‘’.
PKIX path building failed: unable to find valid certification path to requested target

I tried many ways such as

  1. Reinstalled the Android Studio many times with different versions
  2. Try to update the gradle but fails
  3. Tried to use locally downloaded gradle.
  4. I tried it with more than 5 different networks.
  5. Deleted all the system cache.

But nothing works can anyone please help me to fix this issue.