作者:AZ_mxl
地址:https://www.cnblogs.com/maxinliang/
Check Update一直提示Connection failed. Please check your network connection and try again,开始以为是由于G*W在捣乱,但是打开VPN后还是无法更新,然后开始Google了一下找到了下面的解决办法。
1、Mac OSX
首先打开Finder在左边选择Application目录,在右边找到Android Studio.app,然后右击选择“显示包内容”如下图:
然后找到 Contents/bin/ 目录下的 .vmoptions 后缀的文件
2、Linux
找到 bin/ 目录下的 studio.vmoptions (32位系统) 或者 studio64.vmoptions (64位系统)文件
3、Windows
找到 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.
-Didea.patches.url=http://dl.google.com/android/studio/patches/
保存后,重新打开Android Studio点击Check Update就会弹出更新信息提示了
如果仍然无效,将url里的修改http为https,然后重启点击Check Update试试~~~
注:自己修改过本机host后可能有问题!
ps:http://www.inferjay.com/blog/2014/12/26/update-android-studio-fail/?utm_source=tuicool
继续阅读与本文标签相同的文章
-
二维码如此普及,为何三维码没办法普及
2026-05-19栏目: 教程
-
山东有效专利量前十企业和前十大专院校名单来啦,第一名你想到了吗
2026-05-19栏目: 教程
-
两种ASO应用优化的核心操作方法
2026-05-19栏目: 教程
-
第126届广交会15日开幕,新产品新技术受青睐
2026-05-19栏目: 教程
-
多位知名专家建言 宁波打造中国隐形冠军之城
2026-05-19栏目: 教程
