Android Studio 更新时提示connection failed的解決方法
16lz
2021-01-23
Android Studio 在更新时提示Connection failed。可修改安装路径下的bin/studio.vmoptions ,添加如下内容:
-Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml
-Didea.patches.url=http://dl.google.com/android/studio/patches/
注意:64位软件需要修改studio64.vmoptions文件。
如果仍然无效,可以修改http为https试试看,然后重启点击check update。
关于update对话框中更新通道的选择,建议使用Dev Channel,这个较稳定。
以下关于更新源的介绍转自http://www.tuicool.com/articles/fQJN7n:
- Canary channel : Canary builds are the bleeding edge, released about weekly. While these builds do get tested, they are still subject to bugs, as we want people to see what's new as soon as possible. This is not recommended for production.
- Dev channel : Dev builds are hand-picked older canary builds that survived the test of time. It should be updated roughly bi-weekly or monthly.
- Beta channel : Not used yet. This will be used when we'll have beta-quality releases. Right now Android Studio is considered preview-quality.
- Stable channel : Not used yet. That will be for version 1.0 and following stable milestones.
How to Switch?
Press “Ctrl-Alt-S” to go to settings or you can find it through the file menu.
Under IDE Settings - Select Updates and switch “ Canary Channel ” to “ Dev Channel ” as shown below.
Wrap-Up
My Android Studio is finally back up and running and hopefully this saves you some pain.
更多相关文章
- Android 功耗优化(5)---Android O 的Doze模式白名单路径
- 如何正确获得Android内外SD卡路径
- android存储路径问题
- Android Studio 3.2.2- Android SDK 安装包报错 无法 安装 路径
- android 文档路径获取
- I2C-Tools 4.0使用说明及android平台移植,提供源码下载路径
- android 获取系统默认路径
- Android 安装路径问题 -- 导致无法启动模拟器
- Android 根据Video绝对路径获取其缩略图