Android Studio 安装向导 (studio64.exe) 无法获取某些 XML。
我已经在studio64.exe.vmoptions中设置了
-Djava.net.preferIPv4Stack=true
-Dhttp.proxyHost=...
-Dhttp.proxyPort=...
也尝试过
-Dhttp.proxyHost=www.google.com
-Dhttp.proxyPort=80
但是没有任何效果,我在谷歌上没有找到任何有用的东西,似乎我是唯一遇到这个问题的人。
详情:
Android SDK was installed to C:\Users\*\AppData\Local\Android\sdk
Refresh Sources:
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connection refused: connect
Fetched Add-ons List successfully
Refresh Sources
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: Connect Connection refused: connect
Refresh Sources:
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: Connect Connection refused: connect
There is nothing to install or update.
The following SDK component was not installed: build-tools-21.1.1
我使用了很多开发工具都没有出现问题,而 Android Studio 现在是第一个出现连接问题的工具。
我可以通过浏览器访问提到的 XML 文件,没有任何问题。
在 x86 系统上的代理服务器后面工作时,我遇到了类似的问题。最初 Studio 不提供任何设置界面,因此必须完成以下操作。
Android Studio 的代理设置应在位于“D:\Users\%UserProfile%.AndroidStudi”的“other.xml”中进行