---
title: "android SDK安装代理设置"
author: "liushian"
date: "2010-06-02T11:47:10Z"
tags: []
categories: ["移动开发"]
slug: "android-sdk"
draft: false
lastmod: "2010-06-02T11:49:01Z"
id: 681817
url: "https://liushian.iteye.com/blog/681817"
---

听说google earth 没经China gev的允许而拍摄到了其军事基地（据说就是2012中的诺亚方舟的建造基地），所以将google赶出了China。进而屏蔽google的一些重要IP地址。android SDK 的下载地址便成了本次政治博弈的牺牲品。大陆的developer无法通过正常的方式安装SDK，必须要进行代理地址设置才可以。具体状况如下：运行SDK Setup.exe后会出现如下错误： Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings. 解决办法：配置代理服务器 1 修改代理配置：Settings里Http Proxy Server:10.159.192.62,Http Proxy Port:8080,选择如下两个选项卡：Force https//.....using http...,还有一个：Ask Before restaring ADB.

    上面的代理地址已过期，只是作为演示使用。最新可用的代理地址可以在google中输入“最新代理”进行搜索选择。为了防止下一个代理网站的牺牲，此处我就不再写可用的地址了。