android studio 升级问题

来源:互联网 发布:淘宝好吃的甜品店 编辑:程序博客网 时间:2024/06/05 08:04

点Check Update却一直提示Connection failed. Please check your network connection and try again,但是打开VPN后还是无法更新,然后开始Google了一下找到了下面的解决办法。

1.找到 bin/ 目录下的 studio.vmoptions (32位系统) 或者 studio64.exe.vmoptions (64位系统)文件

接着用自己趁手的编辑器打开 idea.vmoptions 或者 studio.vmoptions/studio64.vmoptions 或者 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/

2.配置hosts文件问题,检查hosts文件,是否添加了其他的代理。

1 0