Android SDK更新失败及其解决办法

出现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 SDK更新失败及其解决办法)