解决Android(安卓)Studio 升级时提示 Connection failed. Please check your network connection and try again问题
16lz
2021-01-26
一,问题:
无论mac还是windows可能都会出现这个问题,解决方案大同小异,就是修改VMOptions而已。
解决方案:
Windows:
在\Android Studio\bin目录下找到 studio.exe.vmoptions文件。64系统找到相应的studio64.exe.vmoptions文件。添加以下两句:
-Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml
-Didea.patches.url=http://dl.google.com/android/studio/patches/
重启后就可以更新使用
Mac:
找到Android Studio的安装包,然后显示包内容。
在/Applications/Android Stuiod.app/Contents目录。找到info.plist
然后找到key为JVMOptions,在其目录下找到key 为VMOptions 然后编辑其value,
在最前面加入下面内容:
-Didea.patches.url=http://dl.google.com/android/studio/patches/ -Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml
每个选项之间要保留空格。
保存,重启Android Studio即可
更多相关文章
- 关于Eclipse不能升级android SDK和ADT的解决方法
- ubuntu11.10下配置android的Eclipse开发环境
- Android(安卓)引用使用外部字体
- (九)Android(安卓)项目集成 Flutter 模块
- Android(安卓)studio rebuild之后找不到R文件
- android系统开发sdcard
- android源码中makefile文件中各参数说明
- Android(安卓)ramdisk.img system.img userdata.img 介绍与使用
- Android(安卓)Studio 新建页面和跳转