So I just installed Android Studio again after a long time and it asked me to configure the proxy, so I did. I tested the connection and it worked.
Then it asked me
For me it worked like this:
.gradle
C:\Users\user\.gradle
P.S. There is no proxy in my system (windows 8.1)
and it worked! hope this helps.