Android Studio 解决无法在线更新问题
2015-02-27 本文已影响418人
申子胥
最近Android Studio版本从1.0.1更新到了1.1.0了。可是点击help → check for update...报错如下。

电脑本来翻墙是没问题的,SDK也可以正常更新。
解决方法:
对于64位的操作系统来说,更改安装目录bin\studio64.exe.vmoptions文件,如G:\Program Files\Android\Android Studio\bin\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/
然后重新启动就可以在线更新了。

更新成功后查看版本:

更新成功。