Android SDK更新失败及其解决办法
16lz
2021-01-23
出现Failed to fetch URL错误提示
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: != 更新ADT时无法解析https://dl-ssl.google.com/android/eclipse
解决办法
打开C:\Windows\System32\drivers\etc文件夹,将hosts文件复制到桌面,用文本编辑软件(如Subline Text2)打开hosts文件。增加一行:74.125.237.1 dl-ssl.google.coms
更多相关文章
- android 自定义View 在布局文件中写法
- Android上传下载文件(图片)
- android 录像/打开video文件
- (原)Eclipse的java中文件读写
- Android File文件操作
- Android Button Maker(在线生成android shape xml文件的工具),真方