mac下面更新Android SDK(解决无法下载)
2014-11-29 13:21
447 查看
在mac机器用android studio下面,点击Manager SDK,一般会卡在:Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
进度条会不动,这里面给一个解决办法:
在文件-->前往->前往文件夹...
输入:/etc/hosts
得到如下图:
将这个文件拷贝出来(放到桌面)并打开,内容如下:
在这个文件内容末尾追加:
进度条会不动,这里面给一个解决办法:
在文件-->前往->前往文件夹...
输入:/etc/hosts
得到如下图:
将这个文件拷贝出来(放到桌面)并打开,内容如下:
## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost
在这个文件内容末尾追加:
209.116.186.251 www.google.com.hk 209.116.186.251 accounts.google.com 203.208.46.146 www.google.com 74.125.113.121 developer.android.com 203.208.46.146 dl.google.com 203.208.46.146 dl-ssl.google.com 203.208.46.146 https://dl.google.com 203.208.46.146 https://dl-ssl.google.com[/code]
保存,将这个文件替换原来在
/etc/hosts 的文件。
重新打开Manager SDK既可以发现可以了。
window系统下面情况类似。打开C:\Windows\System32\drivers\etc,以管理员身份编辑hosts文件,在最后添加即可。
相关文章推荐
- 解决 Android SDK无法下载和更新失败的问题
- Android SDK, Eclipse 无法更新, 无法下载的解决方法
- Mac系统下Android SDK更新以及ADT无法在线下载
- 解决mac无法更新android sdk报Fetching https://dl-ssl.google.com/android/repository/addo
- Mac系统下Android SDK无法更新解决办法
- Mac系统下Android SDK更新以及ADT无法在线下载
- 解决mac无法更新android sdk报Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml错误
- Mac版本Android SDK无法更新问题解决
- Android SDK使用国内镜像站,解决下载速度慢无法更新?
- Android SDK使用国内镜像站,解决下载速度慢无法更新?
- 解决Android Studio下载更新Android SDK网络异常或无法下载
- 解决adt-bundle中无法更新下载Android SDK问题
- mac系统下Android SDK更新以及ADT无法在线下载
- Mac系统下Android SDK更新以及ADT无法在线下载
- Android SDK下载和更新失败的解决方法
- Android SDK 无法更新的解决方法
- Android SDK下载和更新失败的解决方法
- Android SDK无法更新问题解决(转)
- Android SDK下载和更新失败的解决方法!!!
- Android SDK 无法更新解决办法