简体   繁体   English

Android SDK安装失败

[英]Android SDK installation failed

I am new to android and i am trying to download android sdk in windows xp. 我是Android新手,我试图在Windows XP中下载android sdk。 I am behind a proxy 我支持代理

While installing sdk, I am getting this error 在安装sdk时,我收到此错误

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

On googling, i got the following 2 solutions for it. 在谷歌搜索,我得到了以下2个解决方案。

1) Set proxy on Android SDK manager 2) Force http, instead of https. 1)在Android SDK管理器上设置代理2)强制http,而不是https。

Whar should I do to proceed. 我应该继续做什么。 Any help would be appreciated. 任何帮助,将不胜感激。

SOLUTION

We can set the proxy in the SDK manager. 我们可以在SDK管理器中设置代理。 in Tools -> options. 在工具 - >选项中。

There i set the proxy and port as shown in web browser (Internet Explorer/Firefiox) 在那里我设置了代理和端口,如Web浏览器(Internet Explorer / Firefiox)中所示

its working. 它的工作。 !

We can set the proxy in the SDK manager. 我们可以在SDK管理器中设置代理。 In Tools -> options. 在工具 - >选项中。

There I set the proxy and port as shown in web browser (Internet Explorer/Firefiox) 在那里我设置代理和端口,如Web浏览器(Internet Explorer / Firefiox)中所示

Its working! 它的工作!

Investigating this on my new Win 7 PC, I found my ADT pluggin to be missing. 在我的新Win 7 PC上调查这一点,我发现我的ADT插件丢失了。 By adding this I solved the problem: Downloading the ADT Plugin 通过添加这个我解决了问题:下载ADT插件

Use the Update Manager feature of your Eclipse installation to install the latest revision of ADT on your development computer. 使用Eclipse安装的Update Manager功能在开发计算机上安装最新版本的ADT。

Assuming that you have a compatible version of the Eclipse IDE installed, as described in Preparing for Installation, above, follow these steps to download the ADT plugin and install it in your Eclipse environment. 假设您已安装了Eclipse IDE的兼容版本,如上面的准备安装中所述,请按照以下步骤下载ADT插件并将其安装在Eclipse环境中。

Start Eclipse, then select Help > Install New Software....
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:

https://dl-ssl.google.com/android/eclipse/

Click OK

Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.

Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM