Play Games Services - Resolution Failed, Gradle failed to fetch dependencies

Hello.
I am running into some troubles trying to use Play Services in my game. I think I have everything ready to test but I get this error every time I try to force resolve:
153982-captura.png

I think this may be what I need to fix in order to have the system working.

I have already tried to set up variable JAVA_HOME from enviromental variables to differents paths, and none of them work. I always get the same error message and the resolving process never ends.
I have also imported the last version of the Google API Package and tried several times to delete everything and start from scratch. With no good endings.
What could I be doing wrong? Thank you for the help.

if you have installled JDK from unity hub then you have to set your JAVA_HOME variables to the directory where the unity installs Openjdk. Eg:C:\Program Files\Unity\2019.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK in my case it is here.Try this it may help you .If it works leave a comment.This will help others.For referance : - YouTube

hi, i had same problem, this video solved my problem, hope it’ll help you.