---
title: "Android SDK相关问题"
author: "haking"
date: "2012-11-15T10:57:20Z"
tags: []
categories: ["移动开发"]
slug: "android-sdk"
draft: false
lastmod: "2012-11-15T10:57:20Z"
id: 1726090
url: "https://haking.iteye.com/blog/1726090"
---

1\. Android SDK Manager

卡在Fetching URL: http://dl-ssl.google.com/android/repository/repository-6.xml

或者Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-7.xml, reason: Connection to http://dl-ssl.google.com refused

解决方法：在hosts文件加入以下host，重启Android SDK Manager

74.125.237.1 dl-ssl.google.com

附上hosts文件修改方法：

windows:

用notepad打开*C:\\WINDOWS\\system32\\drivers\\etc* 中的hosts文件

*Mac:*

打开终端

输入sudo vi /etc/hosts

再输入密码

再输入i

移动光标到你需要修改的地方

完成后按esc, 然后输入:wq