Android SDK Manager解决更新时的问题 :Failed to fetch URL...

作者:lqh 时间:2023-03-17 23:23:36 

         Failed to fectch URl https://dl-ssl.google.com/android/repository/addons_list.xml, reason: Connection to https://dl-ssl.google.com refused

       安装使用SDK Manager更新时出现问题 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> 更新ADT时无法解析https://dl-ssl.google.com/android/eclipse

解决办法

最好的方法还是改hosts文件的方法,更新速度较快。

Windows在C:\WINDOWS\system32\drivers\etc目录下,Linux用户打开/etc/hosts文件。 打开文件后添加以下内容。

#Google主页

203.208.46.146 www.google.com

#这行是为了方便打开Android开发官网 现在好像不翻也可以打开

74.125.113.121 developer.android.com

#更新的内容从以下地址下载

203.208.46.146 dl.google.com

203.208.46.146 dl-ssl.google.com

添加以上的网址,再选用http协议,就可以正常的进行更新了

选用http协议

打开SDK Manager.exe,选中tool栏,点Android SDK Manager ,在下面Force https://...sources to be fetched using http://... 打上勾就行了,这个主要是把受保护的协议 https 转成普通http。

标签:Android,SDK,Manager,更新
0
投稿

猜你喜欢

  • 详解Java中字符流与字节流的区别

    2023-01-14 00:19:58
  • Android自定义Notification添加点击事件

    2022-04-06 19:06:30
  • Android控件之GridView用法实例分析

    2022-03-02 00:01:34
  • Java中Servlet的生命周期详解

    2023-09-10 03:57:59
  • Java经典面试题汇总--多线程

    2023-07-13 01:17:48
  • Android自定义TitleView标题开发实例

    2023-09-05 18:21:41
  • 如何使用ByteArrayOutputStream下载文件

    2021-07-29 11:32:45
  • Android开发仿扫一扫实现拍摄框内的照片功能

    2023-03-17 14:11:12
  • Java表单重复提交的避免方法

    2022-03-03 10:06:06
  • Java RandomAccessFile的用法详解

    2021-12-22 01:19:40
  • java关键字static的使用详解

    2023-09-24 05:04:11
  • Android 图片缩放与旋转的实现详解

    2023-03-10 10:57:41
  • Android 基于IntentService的文件下载的示例代码

    2023-10-28 23:26:02
  • 安卓版微信小程序跳一跳辅助

    2022-08-30 13:44:20
  • Android 清除SharedPreferences 产生的数据(实例代码)

    2023-07-06 15:48:52
  • SpringBoot解决Required String parameter xxx is not present问题

    2021-08-08 12:53:15
  • Java中单例模式的七种写法示例

    2021-07-16 07:57:22
  • 简单谈谈Struts动态表单(DynamicForm)

    2022-10-07 07:24:29
  • C#获取CPU编号的方法

    2022-01-05 10:57:37
  • java中ConcurrentHashMap的读操作为什么不需要加锁

    2021-10-07 18:30:44
  • asp之家 软件编程 m.aspxhome.com