android studio 的安装位置--->bin --->studio.exe.vmoptions (32位) 右键编辑加上
-Djava.net.preferIPv4Stack=true
-Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml
-Didea.patches.url=http://dl.google.com/android/studio/patches/
如果是64位的就打开 (studio64.exe.vmoptions)编辑加上这段话就行了