Android Studio building issues - Could not resolve all artifacts for configuration

Hi
While building android app, Attached the issue i’m facing.

I’m using
Android Studio 4.1.2
I am working on always on VPN in Windows, Before this(always on VPN) it used to work for me. Somehow this is not working now. Could you help one this.

Does it build from command line?
Does it build with a different JRE to run Gradle?
Is your computer clock roughly correct?

There seems to be a problem with HTTPS certificates.
If none of the above helps, maybe run with -Djavax.net.debug=all or in gradle.properties systemProp.javax.net.debug=all to get debug information about the https communication and find where the problem is.

Does it build from command line? – No, i’m using android studio
Does it build with a different JRE to run Gradle? - No
Is your computer clock roughly correct? - Yes

There seems to be a problem with HTTPS certificates.
If none of the above helps, maybe run with -Djavax.net.debug=all or in gradle.properties systemProp.javax.net.debug=all to get debug information about the https communication and find where the problem is. - let me try this give me some time

Does it build from command line? – No, i’m using android studio

The question was not “do you build from the command line”, but “does it build from the command line”.
If you do not build it from within AS but from the command line, does it build then? Just to take AS out of the equation if it still fails to build.