Android SDK安装问题 - 未通过身份验证 [英] Android SDK installation issue - Peer not authenticated

查看:125
本文介绍了Android SDK安装问题 - 未通过身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 获取https: //dl-ssl.google.com/android/repository/addons_list-1.xml 
无法提取URL https://dl-ssl.google.com/android/repository/addons_list-1.xml,原因:对等体未认证
成功添加成功的
获取URL:https://dl-ssl.google.com/android/repository/repository-5.xml
无法获取URL https://dl-ssl.google.com/android/repository/repository-5.xml,原因:对等体未验证
完成加载包。

该错误与代理设置等有关。我正在运行Ubuntu 11.10,我已经安装SDK舒适地在同一设置昨天。

解决方案

作为解决方法,我启用了强制https:// ...来源使用http :// ... 设置在 SDK管理器 工具>选项菜单中。



如果您使用Android Studio而不是独立的SDK Manager,请在Android SDK设置中选择SDK更新站点,然后单击下面的复选框屏幕。



这似乎有帮助。我怀疑这是一个服务器端问题,但我不确定。



编辑:请注意,使用http而不是https不是真的最好的主意!在最坏的情况下,中间人攻击可能会将您的Android SDK库中的恶意代码注入到APK中。这就是为什么它被称为解决方法:)


I am trying to install the Android SDK and I get the following error in the SDK Manager Logs -

Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: peer not authenticated
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml, reason: peer not authenticated
Done loading packages.

The error has something to do with proxy settings etc. I am running Ubuntu 11.10 and I had installed the SDK comfortably on the same setup yesterday.

解决方案

As a workaround, I enabled the "Force https://... sources to be fetched using http://..." setting in the SDK Manager Tools > Options menu.

If you use Android Studio instead of the standalone SDK Manager, Choose "SDK Update Sites" in the "Android SDK" settings and click the checkbox in the lower part of the screen.

That seems to help. I suspect it is a server side problem, but I'm not sure about that.

Edit: Please note that using http instead of https is not really the best idea! In the worst case, a man-in-the-middle attack could inject malicious code into your Android SDK libraries that ends up in your APK. That's why it's called a workaround :)

这篇关于Android SDK安装问题 - 未通过身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆