Adding to answer by @Erfan , If you are using automatic configuration script instead of a proxy server , Change the settings as below :
C:\Users\"Your account".AndroidStudio\config\options\other.xml
Then change the line about proxy configurations like this: