zoukankan      html  css  js  c++  java
  • android studio 在线更新android sdk,遇到无法Fetching https://dl-ssl.google.com/...的解决方式

    近期实在受不了eclipse的“迟钝”,准备入手Android studio开发环境,可是貌似不太顺利,安装成功了Android studio,在线更新Android adk的时候,总是遇到例如以下错误:

    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:Connection to https://dl-ssl.google.com refused...

    參考了网上的资料,并实验找到了终于的解决的方法:

    方法1.C:/WINDOWS/system32/drivers/etc中的hosts文件在最后一行加入74.125.237.1 dl-ssl.google.com

      方法2.打开SDK Manager.exe->选中tool栏->点options ,在以下Force https://...sources to be fetched using http://... 打上勾即可了,主要是把受保护的协议 https 转成普通http。然后再Proxy setting两项填上代理參数(找个翻墙的代理),然后又一次更新下载,速度还挺块的。

             

              


    好了,開始入手Android studio了,也祝大家配置成功!

  • 相关阅读:
    Android Camera 使用小结
    Android 调用堆栈跟踪
    读取文件
    Android USB大容量存储时SD卡状态监听(转)
    Setting up PhoneGap on Ubuntu for Android app development
    python单元测试
    python数据库备份
    python多线程多进程
    python面向对象编程和类
    python异常处理及Url编码
  • 原文地址:https://www.cnblogs.com/mengfanrong/p/4169465.html
Copyright © 2011-2022 走看看