Android SDK Manager 更新失败的解决方法
2024-08-26 06:47:32
Android SDK Manager 更新失败的解决方法
最近使用Android SDK Manager 更新Android SDK tools 发现经常更新失败,获取不到更新信息:
- Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
- Fetched Add-ons List successfully
- Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
- Done loading packages.
- Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
- Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: peer not authenticated
- Fetched Add-ons List successfully
- Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
- Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-7.xml, reason: SSLPeerUnverified peer not authenticated
- Done loading packages.
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
Done loading packages.
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: peer not authenticated
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-7.xml, reason: SSLPeerUnverified peer not authenticated
Done loading packages.
上述是Android SDK Manager Log的更新失败的信息,如下图:
这个信息是网络上https的网络连接不上造成的,所以需要把https都换成http。
操作如下,点击SDK Manager的Tools->Options
选择 Force https://... sources to be fetched using http://
如下图,见红色框处
当然如果你有VPN或公司有代理可以连上美国的google,那可以在Proxy里面设置代理的IP和端口
设置完后更新就会成功
Log的结果如下:
- Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
- Fetched Add-ons List successfully
- Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml
- Done loading packages.
- Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
- Validate XML
- Parse XML
- Fetched Add-ons List successfully
- Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml
- Validate XML: http://dl-ssl.google.com/android/repository/repository-7.xml
- Parse XML: http://dl-ssl.google.com/android/repository/repository-7.xml
最新文章
- J2EE版本
- ionic overflow:auto失效
- Vijos1680距离/openjudge2988计算字符串的距离[DP]
- [HTML]HTML5实现可编辑表格
- Junit4的简单使用
- Teamwork——Week4 团队分工和预估项目时间
- 【搬运】一分钟快速入门OpenStack
- .net mvc笔记4_依赖注入
- push类型消息中间件-消息服务端(三)
- chrome 浏览器最小字体为12px 的解决办法
- angular 自定义指令详解 Directive
- shell按行读取文件
- ThreadPoolExecutor 学习笔记
- [Android][Recovery] Recovery下找不到sdcard路径
- 业务限流场景简单实现方案:RateLimiter
- 自动化测试基础篇--Selenium文件上传send_keys
- placeholder解决兼容各种IE浏览器的方法
- CVE-2018-14634 - Linux create_elf_tables()中的整型溢出 - 翻译
- eol-last的相关知识
- C printf按8进制、10进制、16进制输出以及高位补0
热门文章
- magento后台登陆被锁定 索引报错的解决:General error: 1205 Lock wait timeout
- C++学习笔记15:操作符重载的函数原型列表(推荐)
- 《JS高程》事件学习笔记
- jsb游戏闪退 ScriptingScore::executeFunctionWithOwner 出错
- linux监控nmon和analyser的使用
- Core Java Volume I — 3.3. Data Types
- jsp页面 date转化成string
- 使用ASP.NET web API创建REST服务(三)
- codeforces 192 D
- activiti 中的签收与委托 操作