android--SDK Manager下载Connection to http://dl-ssl.google.com refused
2024-08-25 10:22:05
错误
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google.com refused
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: hostname in certificate didn't match: <dl-ssl.google.com> != <www.google.com>
原因是谷歌被墙了
修改hosts文件,Windows: C:\WINDOWS\system32\drivers\etc; Linux: /etc/hosts。
添加 #Google首页
203.208.46.146 www.google.com
#方便查看android api,下载sdk等
74.125.113.121 developer.android.com
#sdk manger下载
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
光是这样还是不行的,因为使用https下载,
需要在sdk manger菜单栏tools--options--勾上Force https xxx to be http xxx。
或使用代理
hx.gy:1080是红杏公益服务器,方便科学工作者访问一些常用的科学网站。
最新文章
- 数据库为什么要用B+树结构--MySQL索引结构的实现
- java项目报junit 相关错误
- poj 3735 Training little cats 矩阵快速幂+稀疏矩阵乘法优化
- zend 快捷键
- C2第四次作业解题报告
- Add Customerlize Button in More Button List In Odoo
- While readingiphone真机无法显示图片,而模拟器可以正常显示
- KafkaSpout: PartitionManager的行为分析
- 使用jsonp跨域请求
- ORACLE查看锁(lock)情况
- SpringMVC源码阅读(一)
- java中对象的转型
- java线层的启动与停止
- Spark集群模式概述
- 基于visual Studio2013解决C语言竞赛题之1074八皇后
- 状态开关按钮(ToggleButton)与开关(Switch)的功能与用法
- Noip 2014酱油记+简要题解
- J1001.Java原生桌面及Web开发浅谈
- app后端设计(4)-- 通讯的安全性
- 003.MySQL高可用主从复制新增slave