我无法安装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.
修改
@SilentKnight @alijandro @Anggrayudi H
我重新启动了系统。关闭Windows防火墙(我没有反病毒)。启动SDKManager并尝试安装。同样的问题。查看SDKManager日志,我看到以下错误消息(SDK Manager启动时出现)。我在网上手动打开所有这些错误链接,我确实看到了这些文件。但是,SDK Manager在首次启动时不会获取它们,因此无法安装app 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
答案 0 :(得分:1)
在Android SDK Manager设置菜单中,Tool
- > Options
- > Proxy Settings
,确保HTTP Proxy Server
和HTTP Proxy Port
为空。
然后在SDK Manager设置菜单中,Packages
- > Reload
。它将为您重新生成并更新数据。