我无法安装app-compat v7库。我正在按照https://developer.android.com/tools/support-library/setup.html
奇怪的是,上面链接中的说明曾经在我的旧系统上起作用。我打开SDK管理器,选择Android支持库,接受许可并安装。但我得到了以下错误。
任何建议都很感激(我花了几个小时试图弄清楚)
Downloading Android Support Library, revision 20
Download interrupted: Connection to http://127.0.0.1:5050 refused
Done. Nothing was installed.
编辑
@沉默骑士@alijandro@Anggrayudi H
我重新启动了系统。关闭了windows防火墙(我没有防病毒软件)。已启动SDKManager并尝试安装。同样的问题。查看SDKManager日志,我看到以下错误消息(当SDK Manager启动时出现)。我在网上手动打开所有这些错误链接,我确实看到了这些文件。但是,SDK Manager在首次启动时不会获取它们,因此无法安装应用程序compat。关于为什么SDKManager能够提取一些文件而不能提取其他的任何想法
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connection to http://127.0.0.1:5050 refused
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-10.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: HttpHostConnect Connection to http://127.0.0.1:5050 refused
Fetching URL: http://dl-ssl.google.com/android/repository/addon.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/addon.xml, reason: HttpHostConnect Connection to http://127.0.0.1:5050 refused
Fetching URL: http://dl-ssl.google.com/android/repository/addon-6.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/addon-6.xml/addon.xml, reason: HttpHostConnect Connection to http://127.0.0.1:5050 refused
Fetching URL: http://dl-ssl.google.com/glass/gdk/addon.xml
Failed to fetch URL http://dl-ssl.google.com/glass/gdk/addon.xml, reason: HttpHostConnect Connection to http://127.0.0.1:5050 refused
Fetching URL: http://dl-ssl.google.com/android/repository/extras/intel/addon.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/extras/intel/addon.xml, reason: HttpHostConnect Connection to http://127.0.0.1:5050 refused
在Android SDK Manager设置菜单Tool
->Options
->Proxy Settings
中,确保HTTP Proxy Server
和HTTP Proxy Port
为空。
然后在SDK Manager设置菜单中,Packages
->Reload
。它将再次为您刷新和更新数据。