Android(安卓)studio 升级失败 connection failed的解决办法
16lz
2021-01-25
1. Finder里, shift+command+g, 进入如下文件夹
/Applications/Android Studio.app/Contents/bin/studio.vmoptions
2. 打开此文件,用文本编辑器或者Vim
3.在最后一行添加如下内容:
-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/
4.存盘退出
更多相关文章
- 为什么要学习 Markdown?究竟有什么用?
- Android(安卓)Studio打包APK是遇到的一些问题(Lint检查的错误)
- ubuntu gradle编译总结
- create new Android(安卓)Virtual Device: no system images ins
- android:text文字添加阴影效果
- Android(安卓)studio打包报错:Lint found fatal errors while ass
- Android(安卓)Studio 提示错误:No IDEA annotations attached to
- 搭建Android编译环境
- Eclipse导入Android项目的正确方法