Android studio 更新時,提示網絡問題
“Connection failed. Please check your network connection and try again”
在默認的studio64.exe.vmoptions(64bit系統) 文件或studio.exe.vmoptions(32bit系統) 增加配置如下:
-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/
第一句IPV4的可加可不加, 文件默認的配置中已包含,重點在下面兩句。
然后選擇 help--> check for update 出現如下提示,點擊 Update and Restart進行升級

