Studio 更新的时候提示Connection failed (connect timed out). Please check network connection and try again.

如下图:




经百度后,明白要有以下操作:

修改$ANDROID_STUDIO_HOME/bin/ 下的 studio.exe.vmoptions(或者studio64.exe.vmoptions)

配置后追加如下:


-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/


如下图:








但是接下来就是让人纠结的问题了——配置好了之后,android studio还是与之前一样不能更新!

那就再百度吧!接着笔者发现是因为之前为了要让sdk更新而修改了系统的hosts文件,把hosts文件的内容改回来就可以更新了。那就再试一下吧:







接着再试一下就可以更新了:


你可能感兴趣的:(Studio 更新的时候提示Connection failed (connect timed out). Please check network connection and try again.)