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
Just sharing what works for me.
It should work now.
Happy coding :)