安卓:下载Android SDK组件进行离线安装 [英] Android: Download the Android SDK components for offline install

查看:183
本文介绍了安卓:下载Android SDK组件进行离线安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以下载Android SDK组件以供离线安装,而不使用SDK管理器? 问题是我是一个防火墙,我无法控制而这两个网站的下载网址似乎被阻止后面(抛出一个连接被拒绝的例外)

Is it possible to download the Android SDK components for offline install without using the SDK Manager? The problem is I am behind a firewall which I have no control over and both sites download URLs seem to be blocked (throws a connection refused exception)

<一个href="https://dl-ssl.google.com/android/repository/repository.xml">https://dl-ssl.google.com/android/repository/repository.xml

<一个href="http://dl-ssl.google.com/android/repository/repository.xml">http://dl-ssl.google.com/android/repository/repository.xml

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

编辑:我使用Windows XP

I am using Windows XP

推荐答案

安装Android组件,请执行以下步骤

To install android component do following steps

  • 运行Android SDK中的经理在离线机
  • 点击上显示/隐藏日志窗口
  • 在这里youu会发现一个XML文件,其中包,可以在所有列表

撷取<一href="https://dl-ssl.google.com/android/repository/addons_list-2.xml">https://dl-ssl.google.com/android/repository/addons_list-2.xml
  取附加组件列表成功
  抓取网址:<一href="https://dl-ssl.google.com/android/repository/repository-7.xml">https://dl-ssl.google.com/android/repository/repository-7.xml
  验证XML:<一href="https://dl-ssl.google.com/android/repository/repository-7.xml">https://dl-ssl.google.com/android/repository/repository-7.xml
  解析XML:<一href="https://dl-ssl.google.com/android/repository/repository-7.xml">https://dl-ssl.google.com/android/repository/repository-7.xml

Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
Validate XML: https://dl-ssl.google.com/android/repository/repository-7.xml
Parse XML: https://dl-ssl.google.com/android/repository/repository-7.xml

<一个href="https://dl-ssl.google.com/android/repository/addons_list-2.xml">https://dl-ssl.google.com/android/repository/addons_list-2.xml是主要的xml文件,所有其它的包列表可用。

https://dl-ssl.google.com/android/repository/addons_list-2.xml is main xml file where all other package list is available.

可以说你要下载平台API-9,它可在库-7,那么你需要做以下步骤

lets say you want to download platform api-9 and it is available on repository-7 then you have to do following steps

  • 请注意仓库的地址,去到具有互联网连接的其他计算机上,并输入在任何浏览器下面的链接

  • note the repository address and go to any other machine which has internet connection and type following link in any browser

<一个href="https://dl-ssl.google.com/android/repository/repository-7.xml">https://dl-ssl.google.com/android/repository/repository-7.xml

搜索&LT; SDK:网址&GT; ** android-2.3.1_r02-linux.zip **&LT; / SDK:网址&GT; 的API下要下载的版本。这就是你要下载的文件名。你有任何下载或浏览器下面的URI输入,它会开始下载文件,下载该文件。

Search for <sdk:url>**android-2.3.1_r02-linux.zip**</sdk:url> under the api version which you want to download. This is the file name which you have to download. to download this file you have to type following URI in any downloader or browser and it will start download the file.

<一个href="http://dl-ssl.google.com/android/repository/android-2.3.3_r02-linux.zip">http://dl-ssl.google.com/android/repository/android-2.3.3_r02-linux.zip

有关的任​​何文件一般规则替换android-2.3.3_r02-linux.zip您的包名

General rule for any file replace android-2.3.3_r02-linux.zip with your package name

在下载完成后,粘贴下载的ZIP(或其他格式的其他OS)在您的Flash /笔驱动器文件并粘贴zip文件,在&LT; Android的SDK目录&GT; / TEMP (例如: - C:\ Android的SDK \ TEMP )。文件夹/目录中脱机机器

Once the download is complete,paste downloaded ZIP(or other format for other os) file in your flash/pen drive and paste the zip file at <android sdk dir>/temp (ex:- c:\android-sdk\temp) folder/directory in your offline machine.

现在启动SDK管理器并选择您有粘贴在临时的包,然后点击安装包按钮。你的包已经安装。

Now start the SDK manager and select the package which you have paste in temp and click Install package button. Your package has been installed.

重新启动Eclipse和AVD管理器来获得新的软件包。

Restart your eclipse and AVD manager to get new packages.

注: - 如果您正在下载SDK,工具或SDK平台的工具,然后选择包的操作系统是在离线机(的Windows / Linux / Mac上)

这篇关于安卓:下载Android SDK组件进行离线安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆