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
Go to Preferences > Appearance & Behavior > System Settings > HTTP Proxy
If your network needs a proxy, setup Manual proxy configuration.
Else, select Auto-detect proxy settings