• [原]Android开发环境搭建


    【Date】2014-04-20
    【Author】wintys (wintys@gmail.com) http://wintys.cnblogs.com
    【Keywords】android 、 离线android sdk
    【Environment】Window 7 、 Android SDK 22.6.2、Eclipse Java EE Kepler 
    【Content】:

    1 软件下载

         (1) JDK :   http://www.oracle.com/technetwork/java/javase/downloads/index.html

         (2) Eclipse : http://www.eclipse.org/downloads/

         (3) Android SDK : http://developer.android.com/sdk/index.html

              下载: installer_r22.6.2-windows.exe 或 android-sdk_r22.6.2-windows.zip

         (4) ADT : http://developer.android.com/sdk/installing/installing-adt.html 

              下载: ADT-22.6.2.zip

    2 安装

    2.1 JDK

        安装JDK并配置JAVA_HOME环境变量。

    2.2 Eclipse

         解压Eclipse。

    2.3 安装Android SDK 

        双击安装installer_r22.6.2-windows.exe。
        安装完成后配置环境变量: %ANDROID_SDK_HOME% = C:ProgramDevAndroidandroid-sdk。如果不配置ANDROID_SDK_HOME,则打开"SDK Manager.exe"后,生成的相关文件会位于C:Users(用户名).android目录下,配置了环境变量,则.android目录会位于%ANDROID_SDK_HOME%指向的目录下。

    2.4  安装ADT

    点击Help->Install new Software,然后Add->Archive->找到我们下载好的ADT-22.6.2.zip,同时给个名称,如ADT Plugin,如下图:

    Android搭建开发环境

        确定之后,勾选Developer Tools,下一步:

    Android搭建开发环境

    然后再点下一步,一直继续。

    3 运行Eclipse

    3.1 打开Eclipse配置Android SDK位置

    3.2 切换透视图

        我们先切换透视图到JAVA,找到右上角的透视图按钮,在弹出的窗口中选择Java,确定。

    Android搭建开发环境

    这时工具栏发生了小小变化,多出了两个小按键Android搭建开发环境:左边的就是SDK Manager,右边的是Android虚拟设置管理器,即AVDAndroid Virtual DeviceManager。我们马上就要操作它。

    注:在Java EE视图下没有工具栏的Android图标。

    3.3 创建一个设备

        AVDAndroid Virtual Device)就是Android应用程序运行的虚拟设备。建立的Android应用要运行,必须创建AVD,每个AVD上可以配置很多的运行项目。

    点击工具栏上的类似手机的一个小按钮,弹出对话框:

    Android搭建开发环境

    New,我们来新建一个设备:SD 卡会在系统里生成一个同等大小的文件,用来模拟SD 卡,因此不宜设置得太大。

    Android搭建开发环境

    点击确定,新建成功。

    Android搭建开发环境
     

    4 创建Hello World项目

    点击File -> New -> Android Application Project

    Android搭建开发环境

    填好应用名称和相应信息,包名一般是网站域名倒过来写,包名一定要唯一,否则就被认为是同一个程序。目标版本是兼容最高的版本。点击NEXT

    Android搭建开发环境

    Mark this project as a library:为其他应用程序做基础,作为一个包存在。

    Android搭建开发环境

    以上是设置启动程序的图标。

    Android搭建开发环境

    以上是创建一个应用程序的模板选择。

    Android搭建开发环境

    点击Finish,一个项目创建完成。

    完成后,Project Explorer窗口有了一个HelloWorld的东东。

    Android搭建开发环境

    src  源文件

    gen  ADT自动生成的JAVA文件,程序员千万不要去修改

    Android 4.4.2+Android Private Libraries  jar文件

    assets  资源文件,图片,音频,视频等

    bin  二进制文件,编译过后的文件

    libs  第三方的jar文件,即引用第三方的代码

    res  也是资源文件,与assets不同,生成的文件都有ID


    5 运行Hello World项目

    HelloWorld上点右键,Run As->Run Configuration

    Android搭建开发环境

    或在HelloWorld上点右键,Run As->Android Application

    Android搭建开发环境

    第一次启动可能需要几分钟,请耐心等待:

    Android搭建开发环境

    Hello World! 虽然还没有编写一句代码,但是经典的hello world界面出现了。看到这个界面后,你的android编码之旅就正式启航了。

    6 离线下载Android SDK

      

    打开"SDK Manager.exe",下载相关的SDK时,会非常慢。可手动获取这些包的下载地址并使用下载工具下载,手动安装。安装方法简单,重点在于获取下载地址,因每次版本更新地址都可能会有所不同。下载完成后将下载的压缩包放入temp文件夹下。

    例如:C:ProgramDevandroidandroid_sdk emp。

    然后执行Android SDK Manager 选择你已经下载的包进行安装即可。


    6.1 获取离线安装包地址

        在"SDK Manager"中,打开右下角的查看日志按钮(红色手右边的那个按钮)可获取读取xml文件日志。认真查看日志文件,发现规律如下:先加载一个xml文件,解析该xml文件,再从该xml文件中获取对应分类的文件的版本信息。逐一打开这几个xml文件,发现就是描述各分类文件的版本信息的,此时我们可从xml文件查看各文件名,只需该文件名填入到这个下载地址即可完成下载:

    https://dl-ssl.google.com/android/repository/******.zip (后面这个******.zip是根据你需要下载的文件进行对应填充)。 

        查看SDK Manager Log发现每次更新时,SDK Manager 都下载以下几个xml文件:

        编写一个简单程序,将其中的名为url的标签对应的内容,拼接在路径 http://dl-ssl.google.com/android/repository/  后面,即可得到所有需要的安装包的下载地址,然后可以用迅雷等下载工具进行下载,将下载好的包拷贝到SDK根目录下的temp文件夹内,再点安装时,即可直接安装,节省大量时间。

        repository-8.xml内容如下:

     

    <?xml version="1.0" encoding="UTF-8"?>
    <!--
     * Copyright (C) 2009 The Android Open Source Project
     *
     * Licensed under the Apache License, version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *      http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
    -->
    <sdk:sdk-repository xmlns:sdk="http://schemas.android.com/sdk/android/repository/8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <sdk:license id="android-sdk-license" type="text">Terms and Conditions

    This is the Android Software Development Kit License Agreement.


    1. Introduction


    1.1 The Android Software Development Kit (referred to in this License Agreement as the "SDK" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of this License Agreement. This License Agreement forms a legally binding contract between you and Google in relation to your use of the SDK.

    1.2 "Android" means the Android software stack for devices, as made available under the Android Open Source Project, which is located at the following URL: http://source.android.com/, as updated from time to time.

    1.3 "Google" means Google Inc., a Delaware corporation with principal place of business at 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States.


    2. Accepting this License Agreement


    2.1 In order to use the SDK, you must first agree to this License Agreement. You may not use the SDK if you do not accept this License Agreement.

    2.2 By clicking to accept, you hereby agree to the terms of this License Agreement.

    2.3 You may not use the SDK and may not accept the License Agreement if you are a person barred from receiving the SDK under the laws of the United States or other countries including the country in which you are resident or from which you use the SDK.

    2.4 If you are agreeing to be bound by this License Agreement on behalf of your employer or other entity, you represent and warrant that you have full legal authority to bind your employer or such entity to this License Agreement. If you do not have the requisite authority, you may not accept the License Agreement or use the SDK on behalf of your employer or other entity.


    3. SDK License from Google


    3.1 Subject to the terms of this License Agreement, Google grants you a limited, worldwide, royalty-free, non-assignable and non-exclusive license to use the SDK solely to develop applications to run on the Android platform.

    3.2 You agree that Google or third parties own all legal right, title and interest in and to the SDK, including any Intellectual Property Rights that subsist in the SDK. "Intellectual Property Rights" means any and all rights under patent law, copyright law, trade secret law, trademark law, and any and all other proprietary rights. Google reserves all rights not expressly granted to you.

    3.3 You may not use the SDK for any purpose not expressly permitted by this License Agreement.  Except to the extent required by applicable third party licenses, you may not: (a) copy (except for backup purposes), modify, adapt, redistribute, decompile, reverse engineer, disassemble, or create derivative works of the SDK or any part of the SDK; or (b) load any part of the SDK onto a mobile handset or any other hardware device except a personal computer, combine any part of the SDK with other software, or distribute any software or device incorporating a part of the SDK.

    3.4 You agree that you will not take any actions that may cause or result in the fragmentation of Android, including but not limited to distributing, participating in the creation of, or promoting in any way a software development kit derived from the SDK.

    3.5 Use, reproduction and distribution of components of the SDK licensed under an open source software license are governed solely by the terms of that open source software license and not this License Agreement.

    3.6 You agree that the form and nature of the SDK that Google provides may change without prior notice to you and that future versions of the SDK may be incompatible with applications developed on previous versions of the SDK. You agree that Google may stop (permanently or temporarily) providing the SDK (or any features within the SDK) to you or to users generally at Google's sole discretion, without prior notice to you.

    3.7 Nothing in this License Agreement gives you a right to use any of Google's trade names, trademarks, service marks, logos, domain names, or other distinctive brand features.

    3.8 You agree that you will not remove, obscure, or alter any proprietary rights notices (including copyright and trademark notices) that may be affixed to or contained within the SDK.


    4. Use of the SDK by You


    4.1 Google agrees that it obtains no right, title or interest from you (or your licensors) under this License Agreement in or to any software applications that you develop using the SDK, including any intellectual property rights that subsist in those applications.

    4.2 You agree to use the SDK and write applications only for purposes that are permitted by (a) this License Agreement and (b) any applicable law, regulation or generally accepted practices or guidelines in the relevant jurisdictions (including any laws regarding the export of data or software to and from the United States or other relevant countries).

    4.3 You agree that if you use the SDK to develop applications for general public users, you will protect the privacy and legal rights of those users. If the users provide you with user names, passwords, or other login information or personal information, you must make the users aware that the information will be available to your application, and you must provide legally adequate privacy notice and protection for those users. If your application stores personal or sensitive information provided by users, it must do so securely. If the user provides your application with Google Account information, your application may only use that information to access the user's Google Account when, and for the limited purposes for which, the user has given you permission to do so.

    4.4 You agree that you will not engage in any activity with the SDK, including the development or distribution of an application, that interferes with, disrupts, damages, or accesses in an unauthorized manner the servers, networks, or other properties or services of any third party including, but not limited to, Google or any mobile communications carrier.

    4.5 You agree that you are solely responsible for (and that Google has no responsibility to you or to any third party for) any data, content, or resources that you create, transmit or display through Android and/or applications for Android, and for the consequences of your actions (including any loss or damage which Google may suffer) by doing so.

    4.6 You agree that you are solely responsible for (and that Google has no responsibility to you or to any third party for) any breach of your obligations under this License Agreement, any applicable third party contract or Terms of Service, or any applicable law or regulation, and for the consequences (including any loss or damage which Google or any third party may suffer) of any such breach.


    5. Your Developer Credentials


    5.1 You agree that you are responsible for maintaining the confidentiality of any developer credentials that may be issued to you by Google or which you may choose yourself and that you will be solely responsible for all applications that are developed under your developer credentials.


    6. Privacy and Information


    6.1 In order to continually innovate and improve the SDK, Google may collect certain usage statistics from the software including but not limited to a unique identifier, associated IP address, version number of the software, and information on which tools and/or services in the SDK are being used and how they are being used. Before any of this information is collected, the SDK will notify you and seek your consent. If you withhold consent, the information will not be collected.

    6.2 The data collected is examined in the aggregate to improve the SDK and is maintained in accordance with Google's Privacy Policy.


    7. Third Party Applications


    7.1 If you use the SDK to run applications developed by a third party or that access data, content or resources provided by a third party, you agree that Google is not responsible for those applications, data, content, or resources. You understand that all data, content or resources which you may access through such third party applications are the sole responsibility of the person from which they originated and that Google is not liable for any loss or damage that you may experience as a result of the use or access of any of those third party applications, data, content, or resources.

    7.2 You should be aware the data, content, and resources presented to you through such a third party application may be protected by intellectual property rights which are owned by the providers (or by other persons or companies on their behalf). You may not modify, rent, lease, loan, sell, distribute or create derivative works based on these data, content, or resources (either in whole or in part) unless you have been specifically given permission to do so by the relevant owners.

    7.3 You acknowledge that your use of such third party applications, data, content, or resources may be subject to separate terms between you and the relevant third party. In that case, this License Agreement does not affect your legal relationship with these third parties.


    8. Using Android APIs


    8.1 Google Data APIs

    8.1.1 If you use any API to retrieve data from Google, you acknowledge that the data may be protected by intellectual property rights which are owned by Google or those parties that provide the data (or by other persons or companies on their behalf). Your use of any such API may be subject to additional Terms of Service. You may not modify, rent, lease, loan, sell, distribute or create derivative works based on this data (either in whole or in part) unless allowed by the relevant Terms of Service.

    8.1.2 If you use any API to retrieve a user's data from Google, you acknowledge and agree that you shall retrieve data only with the user's explicit consent and only when, and for the limited purposes for which, the user has given you permission to do so.


    9. Terminating this License Agreement


    9.1 This License Agreement will continue to apply until terminated by either you or Google as set out below.

    9.2 If you want to terminate this License Agreement, you may do so by ceasing your use of the SDK and any relevant developer credentials.

    9.3 Google may at any time, terminate this License Agreement with you if:
    (A) you have breached any provision of this License Agreement; or
    (B) Google is required to do so by law; or
    (C) the partner with whom Google offered certain parts of SDK (such as APIs) to you has terminated its relationship with Google or ceased to offer certain parts of the SDK to you; or
    (D) Google decides to no longer provide the SDK or certain parts of the SDK to users in the country in which you are resident or from which you use the service, or the provision of the SDK or certain SDK services to you by Google is, in Google's sole discretion, no longer commercially viable.

    9.4 When this License Agreement comes to an end, all of the legal rights, obligations and liabilities that you and Google have benefited from, been subject to (or which have accrued over time whilst this License Agreement has been in force) or which are expressed to continue indefinitely, shall be unaffected by this cessation, and the provisions of paragraph 14.7 shall continue to apply to such rights, obligations and liabilities indefinitely.


    10. DISCLAIMER OF WARRANTIES


    10.1 YOU EXPRESSLY UNDERSTAND AND AGREE THAT YOUR USE OF THE SDK IS AT YOUR SOLE RISK AND THAT THE SDK IS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTY OF ANY KIND FROM GOOGLE.

    10.2 YOUR USE OF THE SDK AND ANY MATERIAL DOWNLOADED OR OTHERWISE OBTAINED THROUGH THE USE OF THE SDK IS AT YOUR OWN DISCRETION AND RISK AND YOU ARE SOLELY RESPONSIBLE FOR ANY DAMAGE TO YOUR COMPUTER SYSTEM OR OTHER DEVICE OR LOSS OF DATA THAT RESULTS FROM SUCH USE.

    10.3 GOOGLE FURTHER EXPRESSLY DISCLAIMS ALL WARRANTIES AND CONDITIONS OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.


    11. LIMITATION OF LIABILITY


    11.1 YOU EXPRESSLY UNDERSTAND AND AGREE THAT GOOGLE, ITS SUBSIDIARIES AND AFFILIATES, AND ITS LICENSORS SHALL NOT BE LIABLE TO YOU UNDER ANY THEORY OF LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES THAT MAY BE INCURRED BY YOU, INCLUDING ANY LOSS OF DATA, WHETHER OR NOT GOOGLE OR ITS REPRESENTATIVES HAVE BEEN ADVISED OF OR SHOULD HAVE BEEN AWARE OF THE POSSIBILITY OF ANY SUCH LOSSES ARISING.


    12. Indemnification


    12.1 To the maximum extent permitted by law, you agree to defend, indemnify and hold harmless Google, its affiliates and their respective directors, officers, employees and agents from and against any and all claims, actions, suits or proceedings, as well as any and all losses, liabilities, damages, costs and expenses (including reasonable attorneys fees) arising out of or accruing from (a) your use of the SDK, (b) any application you develop on the SDK that infringes any copyright, trademark, trade secret, trade dress, patent or other intellectual property right of any person or defames any person or violates their rights of publicity or privacy, and (c) any non-compliance by you with this License Agreement.


    13. Changes to the License Agreement


    13.1 Google may make changes to the License Agreement as it distributes new versions of the SDK. When these changes are made, Google will make a new version of the License Agreement available on the website where the SDK is made available.


    14. General Legal Terms


    14.1 This License Agreement constitutes the whole legal agreement between you and Google and governs your use of the SDK (excluding any services which Google may provide to you under a separate written agreement), and completely replaces any prior agreements between you and Google in relation to the SDK.

    14.2 You agree that if Google does not exercise or enforce any legal right or remedy which is contained in this License Agreement (or which Google has the benefit of under any applicable law), this will not be taken to be a formal waiver of Google's rights and that those rights or remedies will still be available to Google.

    14.3 If any court of law, having the jurisdiction to decide on this matter, rules that any provision of this License Agreement is invalid, then that provision will be removed from this License Agreement without affecting the rest of this License Agreement. The remaining provisions of this License Agreement will continue to be valid and enforceable.

    14.4 You acknowledge and agree that each member of the group of companies of which Google is the parent shall be third party beneficiaries to this License Agreement and that such other companies shall be entitled to directly enforce, and rely upon, any provision of this License Agreement that confers a benefit on (or rights in favor of) them. Other than this, no other person or company shall be third party beneficiaries to this License Agreement.

    14.5 EXPORT RESTRICTIONS. THE SDK IS SUBJECT TO UNITED STATES EXPORT LAWS AND REGULATIONS. YOU MUST COMPLY WITH ALL DOMESTIC AND INTERNATIONAL EXPORT LAWS AND REGULATIONS THAT APPLY TO THE SDK. THESE LAWS INCLUDE RESTRICTIONS ON DESTINATIONS, END USERS AND END USE.

    14.6 The rights granted in this License Agreement may not be assigned or transferred by either you or Google without the prior written approval of the other party. Neither you nor Google shall be permitted to delegate their responsibilities or obligations under this License Agreement without the prior written approval of the other party.

    14.7 This License Agreement, and your relationship with Google under this License Agreement, shall be governed by the laws of the State of California without regard to its conflict of laws provisions. You and Google agree to submit to the exclusive jurisdiction of the courts located within the county of Santa Clara, California to resolve any legal matter arising from this License Agreement. Notwithstanding this, you agree that Google shall still be allowed to apply for injunctive remedies (or an equivalent type of urgent legal relief) in any jurisdiction.

    November 13, 2012
        </sdk:license>

        <!-- PLATFORMS ........................ -->

        <sdk:platform>
            <sdk:version>1.1</sdk:version>
            <sdk:api-level>2</sdk:api-level>
            <sdk:revision>1</sdk:revision>
            <sdk:description>Android SDK Platform 1.1_r1</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/android-1.1.html</sdk:desc-url>
            <sdk:obsolete/>
            <sdk:archives>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>46828615</sdk:size>
                    <sdk:checksum type="sha1">a4060f29ed39fc929c302836d488998c53c3002e</sdk:checksum>
                    <sdk:url>android-1.1_r1-windows.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>45584305</sdk:size>
                    <sdk:checksum type="sha1">e21dbcff45b7356657449ebb3c7e941be2bb5ebe</sdk:checksum>
                    <sdk:url>android-1.1_r1-macosx.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>45476658</sdk:size>
                    <sdk:checksum type="sha1">c054d25c9b4c6251fa49c2f9c54336998679d3fe</sdk:checksum>
                    <sdk:url>android-1.1_r1-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:layoutlib>
                <sdk:api>4</sdk:api>
            </sdk:layoutlib>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <!-- Generated manually from earlier versions -->

        <sdk:platform>
            <sdk:version>1.5</sdk:version>
            <sdk:api-level>3</sdk:api-level>
            <sdk:revision>04</sdk:revision>
            <sdk:min-tools-rev>
                <sdk:major>6</sdk:major>
            </sdk:min-tools-rev>
            <sdk:description>Android SDK Platform 1.5_r3</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/android-1.5.html</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>54624370</sdk:size>
                    <sdk:checksum type="sha1">5bb106d2e40d481edd337b0833093843e15fe49a</sdk:checksum>
                    <sdk:url>android-1.5_r04-windows.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>52440607</sdk:size>
                    <sdk:checksum type="sha1">d3a67c2369afa48b6c3c7624de5031c262018d1e</sdk:checksum>
                    <sdk:url>android-1.5_r04-macosx.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>53348669</sdk:size>
                    <sdk:checksum type="sha1">5c134b7df5f4b8bd5b61ba93bdaebada8fa3468c</sdk:checksum>
                    <sdk:url>android-1.5_r04-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:layoutlib>
                <sdk:api>4</sdk:api>
            </sdk:layoutlib>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <sdk:platform>
            <sdk:version>1.6</sdk:version>
            <sdk:api-level>4</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>03</sdk:revision>
            <sdk:min-tools-rev>
                <sdk:major>6</sdk:major>
            </sdk:min-tools-rev>
            <sdk:description>Android SDK Platform 1.6_r2</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/android-1.6.html</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>63454485</sdk:size>
                    <sdk:checksum type="sha1">483ed088e45bbdf3444baaf9250c8b02e5383cb0</sdk:checksum>
                    <sdk:url>android-1.6_r03-linux.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>62418496</sdk:size>
                    <sdk:checksum type="sha1">bdafad44f5df9f127979bdb21a1fdd87ee3cd625</sdk:checksum>
                    <sdk:url>android-1.6_r03-macosx.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>64654625</sdk:size>
                    <sdk:checksum type="sha1">ce0b5e4ffaf12ca4fd07c2da71a8a1ab4a03dc22</sdk:checksum>
                    <sdk:url>android-1.6_r03-windows.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:layoutlib>
                <sdk:api>4</sdk:api>
            </sdk:layoutlib>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <!-- Generated on Thu Oct 22 10:16:34 PDT 2009 using eclair-sdk 17704: Platform. Addon. Tools. Doc. -->

        <sdk:platform>
            <sdk:version>2.0</sdk:version>
            <sdk:api-level>5</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>01</sdk:revision>
            <sdk:min-tools-rev>
                <sdk:major>3</sdk:major>
            </sdk:min-tools-rev>
            <sdk:description>Android SDK Platform 2.0, revision 1</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/android-2.0.html</sdk:desc-url>
            <sdk:obsolete/>
            <sdk:archives>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>75095268</sdk:size>
                    <sdk:checksum type="sha1">be9be6a99ca32875c96ec7f91160ca9fce7e3c7d</sdk:checksum>
                    <sdk:url>android-2.0_r01-linux.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>74956356</sdk:size>
                    <sdk:checksum type="sha1">2a866d0870dbba18e0503cd41e5fae988a21b314</sdk:checksum>
                    <sdk:url>android-2.0_r01-macosx.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>76288040</sdk:size>
                    <sdk:checksum type="sha1">aeb623217ff88b87216d6eb7dbc846ed53f68f57</sdk:checksum>
                    <sdk:url>android-2.0_r01-windows.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:layoutlib>
                <sdk:api>4</sdk:api>
            </sdk:layoutlib>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <!-- Generated on Mon Nov 23 14:08:02 PST 2009 using eclair-release 20723: Platform. Addon. -->

        <sdk:platform>
            <sdk:version>2.0.1</sdk:version>
            <sdk:api-level>6</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>01</sdk:revision>
            <sdk:min-tools-rev>
                <sdk:major>4</sdk:major>
            </sdk:min-tools-rev>
            <sdk:description>Android SDK Platform 2.0.1_r1</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/android-2.0.1.html</sdk:desc-url>
            <sdk:obsolete/>
            <sdk:archives>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>79192618</sdk:size>
                    <sdk:checksum type="sha1">ce2c971dce352aa28af06bda92a070116aa5ae1a</sdk:checksum>
                    <sdk:url>android-2.0.1_r01-linux.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>79035527</sdk:size>
                    <sdk:checksum type="sha1">c3096f80d75a6fc8cb38ef8a18aec920e53d42c0</sdk:checksum>
                    <sdk:url>android-2.0.1_r01-macosx.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>80385601</sdk:size>
                    <sdk:checksum type="sha1">255781ebe4509d9707d0e77edda2815e2bc216e6</sdk:checksum>
                    <sdk:url>android-2.0.1_r01-windows.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:layoutlib>
                <sdk:api>4</sdk:api>
            </sdk:layoutlib>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <!-- Generated on Thu May  6 15:57:41 PDT 2010 using eclair 35983: Platform. -->

        <sdk:platform>
            <sdk:version>2.1</sdk:version>
            <sdk:api-level>7</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>03</sdk:revision>
            <sdk:min-tools-rev>
                <sdk:major>8</sdk:major>
            </sdk:min-tools-rev>
            <sdk:description>Android SDK Platform 2.1_r3</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>70142829</sdk:size>
                    <sdk:checksum type="sha1">5ce51b023ac19f8738500b1007a1da5de2349a1e</sdk:checksum>
                    <sdk:url>android-2.1_r03-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:layoutlib>
                <sdk:api>4</sdk:api>
            </sdk:layoutlib>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <!-- Generated on Wed Jun 30 16:13:06 PDT 2010 using froyo-release 43546: Platform. Addon. -->

        <sdk:platform>
            <sdk:version>2.2</sdk:version>
            <sdk:api-level>8</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>03</sdk:revision>
            <sdk:min-tools-rev>
                <sdk:major>8</sdk:major>
            </sdk:min-tools-rev>
            <sdk:description>Android SDK Platform 2.2_r3</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>74652366</sdk:size>
                    <sdk:checksum type="sha1">231262c63eefdff8fd0386e9ccfefeb27a8f9202</sdk:checksum>
                    <sdk:url>android-2.2_r03-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:layoutlib>
                <sdk:api>4</sdk:api>
            </sdk:layoutlib>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <!-- Generated on Thu Jan 20 09:40:59 PST 2011 using gingerbread-sdk-release 93351: Platform. -->

        <sdk:platform>
            <sdk:version>2.3.1</sdk:version>
            <sdk:api-level>9</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>02</sdk:revision>
            <sdk:min-tools-rev>
                <sdk:major>8</sdk:major>
            </sdk:min-tools-rev>
            <sdk:description>Android SDK Platform 2.3.1_r2</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:obsolete/>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>78732563</sdk:size>
                    <sdk:checksum type="sha1">209f8a7a8b2cb093fce858b8b55fed3ba5206773</sdk:checksum>
                    <sdk:url>android-2.3.1_r02-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:layoutlib>
                <sdk:api>4</sdk:api>
            </sdk:layoutlib>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <!-- Generated on Fri Feb  4 16:41:27 PST 2011 using gingerbread-release 101070: Platform. -->

        <sdk:platform>
            <sdk:version>2.3.3</sdk:version>
            <sdk:api-level>10</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>02</sdk:revision>
            <sdk:min-tools-rev>
                <sdk:major>8</sdk:major>
            </sdk:min-tools-rev>
            <sdk:description>Android SDK Platform 2.3.3._r2</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>85470907</sdk:size>
                    <sdk:checksum type="sha1">887e37783ec32f541ea33c2c649dda648e8e6fb3</sdk:checksum>
                    <sdk:url>android-2.3.3_r02-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:layoutlib>
                <sdk:api>4</sdk:api>
            </sdk:layoutlib>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <!-- Generated on Thu Feb 17 08:41:10 PST 2011 using honeycomb 104254: Platform. -->

        <sdk:platform>
            <sdk:version>3.0</sdk:version>
            <sdk:api-level>11</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>02</sdk:revision>
            <sdk:min-tools-rev>
                <sdk:major>10</sdk:major>
            </sdk:min-tools-rev>
            <sdk:description>Android SDK Platform 3.0, revision 2</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>104513908</sdk:size>
                    <sdk:checksum type="sha1">2c7d4bd13f276e76f6bbd87315fe27aba351dd37</sdk:checksum>
                    <sdk:url>android-3.0_r02-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:layoutlib>
                <sdk:api>4</sdk:api>
            </sdk:layoutlib>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <!-- Generated on Wed May  4 19:39:17 PDT 2011 using honeycomb-mr1 123685: Platform.
             r2: layoutlib.jar from 3.0 to fix issue with ADT 10.
        -->

        <sdk:platform>
            <sdk:version>3.1</sdk:version>
            <sdk:api-level>12</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>03</sdk:revision>
            <sdk:min-tools-rev>
                <sdk:major>11</sdk:major>
            </sdk:min-tools-rev>
            <sdk:description>Android SDK Platform 3.1, revision 3</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>106472351</sdk:size>
                    <sdk:checksum type="sha1">4a50a6679cd95bb68bb5fc032e754cd7c5e2b1bf</sdk:checksum>
                    <sdk:url>android-3.1_r03-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:layoutlib>
                <sdk:api>4</sdk:api>
            </sdk:layoutlib>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <!-- Generated on Fri Jul 15 11:50:12 PDT 2011 using honeycomb-mr2-release 140714: Platform. -->

        <sdk:platform>
            <sdk:version>3.2</sdk:version>
            <sdk:api-level>13</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>01</sdk:revision>
            <sdk:min-tools-rev>
                <sdk:major>12</sdk:major>
            </sdk:min-tools-rev>
            <sdk:description>Android SDK Platform 3.2, revision 1</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>108426536</sdk:size>
                    <sdk:checksum type="sha1">6189a500a8c44ae73a439604363de93591163cd9</sdk:checksum>
                    <sdk:url>android-3.2_r01-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:layoutlib>
                <sdk:api>4</sdk:api>
            </sdk:layoutlib>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <sdk:platform>
            <!-- Generated at Thu Dec 15 16:53:11 2011 from git_ics-mr0 @ 238991 -->
            <sdk:revision>3</sdk:revision>
            <sdk:description>Android SDK Platform 4.0</sdk:description>
            <sdk:version>4.0</sdk:version>
            <sdk:api-level>14</sdk:api-level>
            <sdk:layoutlib>
                <sdk:api>7</sdk:api>
                <sdk:revision>1</sdk:revision>
            </sdk:layoutlib>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>45919570</sdk:size>
                    <sdk:checksum type="sha1">41ba83b51e886461628c41b1b4d47762e0688ed5</sdk:checksum>
                    <sdk:url>android-14_r03.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <sdk:platform>
            <!-- Generated at Fri Mar 16 11:22:43 2012 from ics-mr1 @ 291902 -->
            <sdk:revision>3</sdk:revision>
            <sdk:description>Android SDK Platform 4.0.3</sdk:description>
            <sdk:version>4.0.3</sdk:version>
            <sdk:api-level>15</sdk:api-level>
            <sdk:min-tools-rev>
                <sdk:major>15</sdk:major>
            </sdk:min-tools-rev>
            <sdk:layoutlib>
                <sdk:api>7</sdk:api>
                <sdk:revision>1</sdk:revision>
            </sdk:layoutlib>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>44414679</sdk:size>
                    <sdk:checksum type="sha1">23da24610a8da51054c5391001c51ce43a778b97</sdk:checksum>
                    <sdk:url>android-15_r03.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <sdk:platform>
            <!-- Generated at Thu Dec  6 10:54:05 2012 from git_jb-dev @ 543062 -->
            <sdk:revision>4</sdk:revision>
            <sdk:description>Android SDK Platform 4.1.2</sdk:description>
            <sdk:version>4.1.2</sdk:version>
            <sdk:api-level>16</sdk:api-level>
            <sdk:min-tools-rev>
                <sdk:major>21</sdk:major>
            </sdk:min-tools-rev>
            <sdk:layoutlib>
                <sdk:api>9</sdk:api>
                <sdk:revision>1</sdk:revision>
            </sdk:layoutlib>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>48005140</sdk:size>
                    <sdk:checksum type="sha1">90b9157b8b45f966be97e11a22fba4591b96c2ee</sdk:checksum>
                    <sdk:url>android-16_r04.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <sdk:platform>
            <!-- Generated at Wed Feb 13 11:27:09 2013 from git_jb-mr1.1-dev @ 576024 -->
            <sdk:revision>2</sdk:revision>
            <sdk:description>Android SDK Platform 4.2.2</sdk:description>
            <sdk:version>4.2.2</sdk:version>
            <sdk:api-level>17</sdk:api-level>
            <sdk:min-tools-rev>
                <sdk:major>21</sdk:major>
            </sdk:min-tools-rev>
            <sdk:layoutlib>
                <sdk:api>9</sdk:api>
                <sdk:revision>1</sdk:revision>
            </sdk:layoutlib>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>48057484</sdk:size>
                    <sdk:checksum type="sha1">c442c32c1b702173ab0929a74486e4f86fe528ec</sdk:checksum>
                    <sdk:url>android-17_r02.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <sdk:platform>
            <!-- Generated at Wed Sep 11 18:15:07 2013 from git_jb-mr2-dev @ 819563 -->
            <sdk:revision>2</sdk:revision>
            <sdk:description>Android SDK Platform 4.3</sdk:description>
            <sdk:version>4.3</sdk:version>
            <sdk:api-level>18</sdk:api-level>
            <sdk:min-tools-rev>
                <sdk:major>21</sdk:major>
            </sdk:min-tools-rev>
            <sdk:layoutlib>
                <sdk:api>10</sdk:api>
                <sdk:revision>1</sdk:revision>
            </sdk:layoutlib>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>57319855</sdk:size>
                    <sdk:checksum type="sha1">62a9438d4cf6692f4d6510c27a380be195db9534</sdk:checksum>
                    <sdk:url>android-18_r02.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>

        <sdk:platform>
            <!-- Generated at Fri Feb 28 18:03:43 2014 from git_klp-sdk-release @ 1035858 -->
            <sdk:revision>3</sdk:revision>
            <sdk:description>Android SDK Platform 4.4.2</sdk:description>
            <sdk:version>4.4.2</sdk:version>
            <sdk:api-level>19</sdk:api-level>
            <sdk:min-tools-rev>
                <sdk:major>22</sdk:major>
            </sdk:min-tools-rev>
            <sdk:layoutlib>
                <sdk:api>10</sdk:api>
                <sdk:revision>1</sdk:revision>
            </sdk:layoutlib>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>63798840</sdk:size>
                    <sdk:checksum type="sha1">5f33d8fd36a384fe2b170035e04a29c274a9ef95</sdk:checksum>
                    <sdk:url>android-19_r03.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform>


        <!-- SYSTEM IMAGES ........................ -->

        <sdk:system-image>
            <!-- Generated at Wed Dec  7 13:47:01 2011 from git_ics-mr0 @ 229537 -->
            <sdk:revision>2</sdk:revision>
            <sdk:description>Android SDK Platform 4.0</sdk:description>
            <sdk:api-level>14</sdk:api-level>
            <sdk:abi>armeabi-v7a</sdk:abi>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>99621822</sdk:size>
                    <sdk:checksum type="sha1">d8991b0c06b18d7d6ed4169d67460ee1add6661b</sdk:checksum>
                    <sdk:url>sysimg_armv7a-14_r02.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:system-image>

        <sdk:system-image>
            <!-- Generated at Fri Mar 30 10:43:23 2012 from ics-mr1 @ 302030 -->
            <sdk:revision>2</sdk:revision>
            <sdk:description>Android SDK Platform 4.0.3</sdk:description>
            <sdk:api-level>15</sdk:api-level>
            <sdk:abi>armeabi-v7a</sdk:abi>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>96227377</sdk:size>
                    <sdk:checksum type="sha1">1bf977d6cb4e0ad38dceac0c4863d1caa21f326e</sdk:checksum>
                    <sdk:url>sysimg_armv7a-15_r02.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:system-image>

        <sdk:system-image>
            <!-- Generated at Tue Oct  9 13:43:08 2012 from git_jb-dev @ 495790 -->
            <sdk:revision>3</sdk:revision>
            <sdk:description>Android SDK Platform 4.1</sdk:description>
            <sdk:api-level>16</sdk:api-level>
            <sdk:abi>armeabi-v7a</sdk:abi>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>112528368</sdk:size>
                    <sdk:checksum type="sha1">d1cddb23f17aad5821a089c403d4cddad2cf9ef7</sdk:checksum>
                    <sdk:url>sysimg_armv7a-16_r03.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:system-image>

        <sdk:system-image>
            <!-- Generated at Wed Feb 13 11:29:12 2013 from git_jb-mr1.1-dev @ 576024 -->
            <sdk:revision>2</sdk:revision>
            <sdk:description>Android SDK Platform 4.2.2</sdk:description>
            <sdk:api-level>17</sdk:api-level>
            <sdk:abi>armeabi-v7a</sdk:abi>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>116553808</sdk:size>
                    <sdk:checksum type="sha1">1c321cda1af793b84d47d1a8d15f85444d265e3c</sdk:checksum>
                    <sdk:url>sysimg_armv7a-17_r02.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:system-image>

        <sdk:system-image>
            <!-- Generated at Mon Aug 12 12:43:28 2013 from git_jb-mr2-dev @ 774058 -->
            <sdk:revision>2</sdk:revision>
            <sdk:description>Android SDK Platform 4.3</sdk:description>
            <sdk:api-level>18</sdk:api-level>
            <sdk:abi>armeabi-v7a</sdk:abi>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>125457135</sdk:size>
                    <sdk:checksum type="sha1">4a1a93200210d8c42793324362868846f67401ab</sdk:checksum>
                    <sdk:url>sysimg_armv7a-18_r02.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:system-image>

        <sdk:system-image>
            <!-- Generated at Thu Dec  5 14:04:05 2013 from git_klp-dev @ 938007 -->
            <sdk:revision>2</sdk:revision>
            <sdk:description>Android SDK Platform 4.4.2</sdk:description>
            <sdk:api-level>19</sdk:api-level>
            <sdk:abi>armeabi-v7a</sdk:abi>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>158478012</sdk:size>
                    <sdk:checksum type="sha1">e0d375397e28e3d5d9577a00132463a4696248e5</sdk:checksum>
                    <sdk:url>sysimg_armv7a-19_r02.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:system-image>


        <!-- SAMPLES ........................ -->

        <!-- Generated on Mon Feb 22 13:39:38 PST 2010 using eclair 25887: Samples. -->

        <sdk:sample>
            <sdk:api-level>7</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>01</sdk:revision>
            <sdk:description>Android SDK Samples for Android API 7, revision 1</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>7677831</sdk:size>
                    <sdk:checksum type="sha1">51e4907f60f248ede5c58b54ce7b6ae0b473e0ca</sdk:checksum>
                    <sdk:url>samples-2.1_r01-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:sample>

        <!-- Generated on Tue May 11 19:15:20 PDT 2010 using froyo 36658: Samples. -->

        <sdk:sample>
            <sdk:api-level>8</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>01</sdk:revision>
            <sdk:description>Android SDK Samples for Android API 8, revision 1</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>7969716</sdk:size>
                    <sdk:checksum type="sha1">d16d8bf2dd84cedf73b98b948d66461c8f19d6fb</sdk:checksum>
                    <sdk:url>samples-2.2_r01-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:sample>

        <!-- Generated on Tue Nov 30 19:39:34 PST 2010 using gingerbread 79962: Samples. -->

        <sdk:sample>
            <sdk:api-level>9</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>01</sdk:revision>
            <sdk:description>Android SDK Samples for Android API 9, revision 1</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:obsolete/>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>8516326</sdk:size>
                    <sdk:checksum type="sha1">36f7dd6c8b5dbb50b3cf3e3ac5209f3fe55db2aa</sdk:checksum>
                    <sdk:url>samples-2.3_r01-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:sample>

        <!-- Generated on Tue Feb  8 17:37:15 PST 2011 using gingerbread 102121: Samples. -->

        <sdk:sample>
            <sdk:api-level>10</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>01</sdk:revision>
            <sdk:description>Android SDK Samples for Android API 10, revision 1</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>8539583</sdk:size>
                    <sdk:checksum type="sha1">93b0c3f3bdf5b07f1f115100b4954f0665297a0d</sdk:checksum>
                    <sdk:url>samples-2.3.3_r01-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:sample>

        <!-- Generated on Thu Feb 17 08:45:49 PST 2011 using honeycomb 104254: Samples. -->

        <sdk:sample>
            <sdk:api-level>11</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>01</sdk:revision>
            <sdk:description>Android SDK Samples for Android API 11, revision 1</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>11976920</sdk:size>
                    <sdk:checksum type="sha1">3749ace584631270268d65bb1d0ad61b0d691682</sdk:checksum>
                    <sdk:url>samples-3.0_r01-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:sample>

        <!-- Generated on Wed May  4 19:49:56 PDT 2011 using honeycomb-mr1 123685: Samples. -->

        <sdk:sample>
            <sdk:api-level>12</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>01</sdk:revision>
            <sdk:description>Android SDK Samples for Android API 12, revision 1</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>12150514</sdk:size>
                    <sdk:checksum type="sha1">df0ace37cbca73373fe94080f94c71557cac73a7</sdk:checksum>
                    <sdk:url>samples-3.1_r01-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:sample>

        <!-- Generated on Fri Jul 15 11:52:24 PDT 2011 using honeycomb-mr2 142871: Samples. -->

        <sdk:sample>
            <sdk:api-level>13</sdk:api-level>
            <sdk:codename/>
            <sdk:revision>01</sdk:revision>
            <sdk:description>Android SDK Samples for Android API 13, revision 1</sdk:description>
            <sdk:desc-url>http://developer.android.com/sdk/</sdk:desc-url>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>12193502</sdk:size>
                    <sdk:checksum type="sha1">078bcf1abc1cb8921f3fa482c252963a782bed60</sdk:checksum>
                    <sdk:url>samples-3.2_r01-linux.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:sample>

        <sdk:sample>
            <!-- Generated at Wed Dec  7 13:48:27 2011 from git_ics-mr0 @ 234950 -->
            <sdk:revision>2</sdk:revision>
            <sdk:api-level>14</sdk:api-level>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>16253619</sdk:size>
                    <sdk:checksum type="sha1">1312c22ab0b650e26835cc3945d4ff8cea183416</sdk:checksum>
                    <sdk:url>samples-14_r02.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:sample>

        <sdk:sample>
            <!-- Generated at Fri Mar 16 11:27:52 2012 from ics-mr1 @ 291902 -->
            <sdk:revision>2</sdk:revision>
            <sdk:api-level>15</sdk:api-level>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>16366656</sdk:size>
                    <sdk:checksum type="sha1">042f368c5b09eca4d278264e6dbf9c12c5f73d1f</sdk:checksum>
                    <sdk:url>samples-15_r02.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:sample>

        <sdk:sample>
            <!-- Generated at Sun Jun 24 14:02:06 2012 from git_jb-release @ 391408 -->
            <sdk:revision>1</sdk:revision>
            <sdk:api-level>16</sdk:api-level>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>14729945</sdk:size>
                    <sdk:checksum type="sha1">dce3a2d41db50a381ef47ee8bddbe928520e685e</sdk:checksum>
                    <sdk:url>samples-16_r01.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:sample>

        <sdk:sample>
            <!-- Generated at Mon Nov 12 17:18:09 2012 from git_jb-mr1-dev @ 526865 -->
            <sdk:revision>1</sdk:revision>
            <sdk:api-level>17</sdk:api-level>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>14840030</sdk:size>
                    <sdk:checksum type="sha1">12d58cb26503610fc05bd7618c434cc6f983bc41</sdk:checksum>
                    <sdk:url>samples-17_r01.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:sample>

        <sdk:sample>
            <!-- Generated at Tue Jul 23 17:17:22 2013 from git_jb-mr2-ub-dev @ 751786 -->
            <sdk:revision>1</sdk:revision>
            <sdk:api-level>18</sdk:api-level>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>19897793</sdk:size>
                    <sdk:checksum type="sha1">73e879ce46c04a6e63ad1a9107018b4782945007</sdk:checksum>
                    <sdk:url>samples-18_r01.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:sample>

        <sdk:sample>
            <!-- Generated at Mon Apr 14 13:54:08 2014 from git_klp-docs @ 1120072 -->
            <sdk:revision>5</sdk:revision>
            <sdk:api-level>19</sdk:api-level>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>31894819</sdk:size>
                    <sdk:checksum type="sha1">fe1aebd0a727c592611d4ccdc392b84b8181d0d9</sdk:checksum>
                    <sdk:url>samples-19_r05.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:sample>

        <!-- PLATFORM-TOOLS ........................ -->

        <sdk:platform-tool>
            <!-- Generated at Thu Dec  5 14:03:12 2013 from git_klp-dev @ 938007 -->
            <sdk:revision>
                <sdk:major>19</sdk:major>
                <sdk:minor>0</sdk:minor>
                <sdk:micro>1</sdk:micro>
            </sdk:revision>
            <sdk:archives>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>1111250</sdk:size>
                    <sdk:checksum type="sha1">15aefa42b25b401edeee0645f218043b5a3af7bb</sdk:checksum>
                    <sdk:url>platform-tools_r19.0.1-windows.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>1167642</sdk:size>
                    <sdk:checksum type="sha1">0178481651d60a8d8266dfc08ee14bad38001f61</sdk:checksum>
                    <sdk:url>platform-tools_r19.0.1-linux.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>1118622</sdk:size>
                    <sdk:checksum type="sha1">340a497e4199d076ea93d4ee0e7a50858344d176</sdk:checksum>
                    <sdk:url>platform-tools_r19.0.1-macosx.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:platform-tool>

        <!-- BUILD-TOOLS ........................ -->

        <sdk:build-tool>
            <!-- Generated at Tue May 14 16:40:25 2013 from git_jb-mr1.1-dev @ 673949 -->
            <sdk:revision>
                <sdk:major>17</sdk:major>
                <sdk:minor>0</sdk:minor>
                <sdk:micro>0</sdk:micro>
            </sdk:revision>
            <sdk:archives>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>11004914</sdk:size>
                    <sdk:checksum type="sha1">899897d327b0bad492d3a40d3db4d96119c15bc0</sdk:checksum>
                    <sdk:url>build-tools_r17-windows.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>11696007</sdk:size>
                    <sdk:checksum type="sha1">2c2872bc3806aabf16a12e3959c2183ddc866e6d</sdk:checksum>
                    <sdk:url>build-tools_r17-linux.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>12208114</sdk:size>
                    <sdk:checksum type="sha1">602ee709be9dbb8f179b1e4075148a57f9419930</sdk:checksum>
                    <sdk:url>build-tools_r17-macosx.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:build-tool>

        <!-- Build tools version 18.0.0 was broken for renderscript, so it has been removed -->

        <sdk:build-tool>
            <!-- Generated at Mon Jul 29 15:14:00 2013 from git_jb-mr2-dev @ 754669 -->
            <sdk:revision>
                <sdk:major>18</sdk:major>
                <sdk:minor>0</sdk:minor>
                <sdk:micro>1</sdk:micro>
            </sdk:revision>
            <sdk:archives>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>15413527</sdk:size>
                    <sdk:checksum type="sha1">a6c2afd0b6289d589351956d2f5212b37014ca7d</sdk:checksum>
                    <sdk:url>build-tools_r18.0.1-windows.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>16627330</sdk:size>
                    <sdk:checksum type="sha1">f11618492b0d2270c332325d45d752d3656a9640</sdk:checksum>
                    <sdk:url>build-tools_r18.0.1-linux.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>16633121</sdk:size>
                    <sdk:checksum type="sha1">d84f5692fb44d60fc53e5b2507cebf9f24626902</sdk:checksum>
                    <sdk:url>build-tools_r18.0.1-macosx.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:build-tool>

        <sdk:build-tool>
            <!-- Generated at Wed Sep 11 17:41:47 2013 from git_jb-mr2-dev @ 819563 -->
            <sdk:revision>
                <sdk:major>18</sdk:major>
                <sdk:minor>1</sdk:minor>
                <sdk:micro>0</sdk:micro>
            </sdk:revision>
            <sdk:archives>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>19659547</sdk:size>
                    <sdk:checksum type="sha1">3a9810fc8559ab03c09378f07531e8cae2f1db30</sdk:checksum>
                    <sdk:url>build-tools_r18.1-windows.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>20229298</sdk:size>
                    <sdk:checksum type="sha1">f314a0599e51397f0886fe888b50dd98f2f050d8</sdk:checksum>
                    <sdk:url>build-tools_r18.1-linux.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>20451524</sdk:size>
                    <sdk:checksum type="sha1">16ddb299b8b43063e5bb3387ec17147c5053dfd8</sdk:checksum>
                    <sdk:url>build-tools_r18.1-macosx.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:build-tool>

        <sdk:build-tool>
            <!-- Generated at Thu Oct 10 14:18:15 2013 from git_jb-mr2-dev @ 867478 -->
            <sdk:revision>
                <sdk:major>18</sdk:major>
                <sdk:minor>1</sdk:minor>
                <sdk:micro>1</sdk:micro>
            </sdk:revision>
            <sdk:archives>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>19660000</sdk:size>
                    <sdk:checksum type="sha1">c4605066e2f851387ea70bc1442b1968bd7b4a15</sdk:checksum>
                    <sdk:url>build-tools_r18.1.1-windows.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>20229760</sdk:size>
                    <sdk:checksum type="sha1">68c9acbfc0cec2d51b19efaed39831a17055d998</sdk:checksum>
                    <sdk:url>build-tools_r18.1.1-linux.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>20452157</sdk:size>
                    <sdk:checksum type="sha1">a9d9d37f6ddf859e57abc78802a77aaa166e48d4</sdk:checksum>
                    <sdk:url>build-tools_r18.1.1-macosx.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:build-tool>

        <sdk:build-tool>
            <!-- Generated at Mon Oct 28 23:12:03 2013 from git_klp-release @ 886418 -->
            <sdk:revision>
                <sdk:major>19</sdk:major>
                <sdk:minor>0</sdk:minor>
                <sdk:micro>0</sdk:micro>
            </sdk:revision>
            <sdk:archives>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>20611447</sdk:size>
                    <sdk:checksum type="sha1">6edf505c20f5ece9c48fa0aff9a90488f9654d52</sdk:checksum>
                    <sdk:url>build-tools_r19-windows.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>21339943</sdk:size>
                    <sdk:checksum type="sha1">55c1a6cf632e7d346f0002b275ec41fd3137fd83</sdk:checksum>
                    <sdk:url>build-tools_r19-linux.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>21441270</sdk:size>
                    <sdk:checksum type="sha1">86ec1c12db1bc446b7bcaefc5cc14eb361044e90</sdk:checksum>
                    <sdk:url>build-tools_r19-macosx.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:build-tool>

        <sdk:build-tool>
            <!-- Generated at Thu Dec  5 14:01:45 2013 from git_klp-dev @ 938007 -->
            <sdk:revision>
                <sdk:major>19</sdk:major>
                <sdk:minor>0</sdk:minor>
                <sdk:micro>1</sdk:micro>
            </sdk:revision>
            <sdk:archives>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>20500648</sdk:size>
                    <sdk:checksum type="sha1">5ef422bac5b28f4ced108319ed4a6bc7050a6234</sdk:checksum>
                    <sdk:url>build-tools_r19.0.1-windows.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>21229048</sdk:size>
                    <sdk:checksum type="sha1">18d2312dc4368858914213087f4e61445aca4517</sdk:checksum>
                    <sdk:url>build-tools_r19.0.1-linux.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>21450597</sdk:size>
                    <sdk:checksum type="sha1">efaf50fb19a3edb8d03efbff76f89a249ad2920b</sdk:checksum>
                    <sdk:url>build-tools_r19.0.1-macosx.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:build-tool>

        <sdk:build-tool>
            <!-- Generated at Wed Feb 12 12:38:29 2014 from git_klp-sdk-release @ 1009316 -->
            <sdk:revision>
                <sdk:major>19</sdk:major>
                <sdk:minor>0</sdk:minor>
                <sdk:micro>2</sdk:micro>
            </sdk:revision>
            <sdk:archives>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>20621117</sdk:size>
                    <sdk:checksum type="sha1">af664672d0d709c9ae30937b1062317d3ade7f95</sdk:checksum>
                    <sdk:url>build-tools_r19.0.2-windows.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>21352552</sdk:size>
                    <sdk:checksum type="sha1">a03a6bdea0091aea32e1b35b90a7294c9f04e3dd</sdk:checksum>
                    <sdk:url>build-tools_r19.0.2-linux.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>21453726</sdk:size>
                    <sdk:checksum type="sha1">145bc43065d45f756d99d87329d899052b9a9288</sdk:checksum>
                    <sdk:url>build-tools_r19.0.2-macosx.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:build-tool>

        <sdk:build-tool>
            <!-- Generated at Fri Feb 28 17:11:02 2014 from git_klp-sdk-release @ 1035858 -->
            <sdk:revision>
                <sdk:major>19</sdk:major>
                <sdk:minor>0</sdk:minor>
                <sdk:micro>3</sdk:micro>
            </sdk:revision>
            <sdk:archives>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>20730715</sdk:size>
                    <sdk:checksum type="sha1">cb46b433b67a0a6910ff00db84be8b527ea3102f</sdk:checksum>
                    <sdk:url>build-tools_r19.0.3-windows.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>21462150</sdk:size>
                    <sdk:checksum type="sha1">c2d6055478e9d2d4fba476ee85f99181ddd1160c</sdk:checksum>
                    <sdk:url>build-tools_r19.0.3-linux.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>21563992</sdk:size>
                    <sdk:checksum type="sha1">651cf8754373b2d52e7f6aab2c52eabffe4e9ea4</sdk:checksum>
                    <sdk:url>build-tools_r19.0.3-macosx.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:build-tool>

        <!-- TOOLS ........................ -->

        <sdk:tool>
            <!-- Generated at Fri Mar 21 17:02:58 2014 from git_mirror-aosp-tools_r22.6-with-vendor @ 1085508 -->
            <sdk:revision>
                <sdk:major>22</sdk:major>
                <sdk:minor>6</sdk:minor>
                <sdk:micro>2</sdk:micro>
            </sdk:revision>
            <sdk:min-platform-tools-rev>
                <sdk:major>18</sdk:major>
            </sdk:min-platform-tools-rev>
            <sdk:archives>
                <sdk:archive arch="any" os="windows">
                    <sdk:size>108794847</sdk:size>
                    <sdk:checksum type="sha1">31a7c0d23e2a4a1c4ed33196eecdeb87a5e8fe0f</sdk:checksum>
                    <sdk:url>tools_r22.6.2-windows.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="linux">
                    <sdk:size>101320177</sdk:size>
                    <sdk:checksum type="sha1">a22f653daff4b783cb4f68e177beef100fc251a1</sdk:checksum>
                    <sdk:url>tools_r22.6.2-linux.zip</sdk:url>
                </sdk:archive>
                <sdk:archive arch="any" os="macosx">
                    <sdk:size>74604588</sdk:size>
                    <sdk:checksum type="sha1">3d19dab7920278f59073e14790c61aa6e59143b0</sdk:checksum>
                    <sdk:url>tools_r22.6.2-macosx.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:tool>


        <!-- DOCS ........................ -->

        <sdk:doc>
            <!-- Generated at Thu Dec  5 14:02:18 2013 from git_klp-dev @ 938007 -->
            <sdk:revision>2</sdk:revision>
            <sdk:api-level>19</sdk:api-level>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>180600204</sdk:size>
                    <sdk:checksum type="sha1">6aae26e12b0809dc40768eae6b6a9919aa89dbe6</sdk:checksum>
                    <sdk:url>docs-19_r02.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:doc>

        <!-- SOURCES ........................ -->

        <sdk:source>
            <!-- Generated at Wed Dec  7 13:48:11 2011 from git_ics-mr0 @ 234950 -->
            <sdk:revision>1</sdk:revision>
            <sdk:api-level>14</sdk:api-level>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>16152383</sdk:size>
                    <sdk:checksum type="sha1">eaf4ed7dcac46e68516a1b4aa5b0d9e5a39a7555</sdk:checksum>
                    <sdk:url>sources-14_r01.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:source>

        <sdk:source>
            <!-- Generated at Fri Mar 30 10:43:44 2012 from ics-mr1 @ 302030 -->
            <sdk:revision>2</sdk:revision>
            <sdk:api-level>15</sdk:api-level>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>16468746</sdk:size>
                    <sdk:checksum type="sha1">e5992a5747c9590783fbbdd700337bf0c9f6b1fa</sdk:checksum>
                    <sdk:url>sources-15_r02.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:source>

        <sdk:source>
            <!-- Generated at Thu Jul 19 18:39:42 2012 from git_jb-release @ 403059 -->
            <sdk:revision>2</sdk:revision>
            <sdk:api-level>16</sdk:api-level>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>17876720</sdk:size>
                    <sdk:checksum type="sha1">0f83c14ed333c45d962279ab5d6bc98a0269ef84</sdk:checksum>
                    <sdk:url>sources-16_r02.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:source>

        <sdk:source>
            <!-- Generated at Mon Nov 12 17:16:08 2012 from git_jb-mr1-dev @ 526865 -->
            <sdk:revision>1</sdk:revision>
            <sdk:api-level>17</sdk:api-level>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>18976816</sdk:size>
                    <sdk:checksum type="sha1">6f1f18cd2d2b1852d7f6892df9cee3823349d43a</sdk:checksum>
                    <sdk:url>sources-17_r01.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:source>

        <sdk:source>
            <!-- Generated at Tue Jul 23 17:18:30 2013 from git_jb-mr2-release @ 737497 -->
            <sdk:revision>1</sdk:revision>
            <sdk:api-level>18</sdk:api-level>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>20226735</sdk:size>
                    <sdk:checksum type="sha1">8b49fdf7433f4881a2bfb559b5dd05d8ec65fb78</sdk:checksum>
                    <sdk:url>sources-18_r01.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:source>

        <sdk:source>
            <!-- Generated at Thu Dec  5 14:04:22 2013 from git_klp-dev @ 938007 -->
            <sdk:revision>2</sdk:revision>
            <sdk:api-level>19</sdk:api-level>
            <sdk:archives>
                <sdk:archive arch="any" os="any">
                    <sdk:size>21819439</sdk:size>
                    <sdk:checksum type="sha1">433a1d043ef77561571250e94cb7a0ef24a202e7</sdk:checksum>
                    <sdk:url>sources-19_r02.zip</sdk:url>
                </sdk:archive>
            </sdk:archives>
            <sdk:uses-license ref="android-sdk-license"/>
        </sdk:source>
    </sdk:sdk-repository>

        日志内容如下:

    Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml

    Validate XML

    Parse XML

    Fetched Add-ons List successfully

    Fetching URL: https://dl-ssl.google.com/android/repository/repository-9.xml

    Validate XML: https://dl-ssl.google.com/android/repository/repository-8.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/repository-8.xml

      Found SDK Platform Android 1.1, API 2, revision 1 (Obsolete)

      Found SDK Platform Android 1.5, API 3, revision 4

      Found SDK Platform Android 1.6, API 4, revision 3

      Found SDK Platform Android 2.0, API 5, revision 1 (Obsolete)

      Found SDK Platform Android 2.0.1, API 6, revision 1 (Obsolete)

      Found SDK Platform Android 2.1, API 7, revision 3

      Found SDK Platform Android 2.2, API 8, revision 3

      Found SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)

      Found SDK Platform Android 2.3.3, API 10, revision 2

      Found SDK Platform Android 3.0, API 11, revision 2

      Found SDK Platform Android 3.1, API 12, revision 3

      Found SDK Platform Android 3.2, API 13, revision 1

      Found SDK Platform Android 4.0, API 14, revision 3

      Found SDK Platform Android 4.0.3, API 15, revision 3

      Found SDK Platform Android 4.1.2, API 16, revision 4

      Found SDK Platform Android 4.2.2, API 17, revision 2

      Found SDK Platform Android 4.3, API 18, revision 2

      Found SDK Platform Android 4.4.2, API 19, revision 3

      Found ARM EABI v7a System Image, Android API 14, revision 2

      Found ARM EABI v7a System Image, Android API 15, revision 2

      Found ARM EABI v7a System Image, Android API 16, revision 3

      Found ARM EABI v7a System Image, Android API 17, revision 2

      Found ARM EABI v7a System Image, Android API 18, revision 2

      Found ARM EABI v7a System Image, Android API 19, revision 2

      Found Samples for SDK API 7, revision 1

      Found Samples for SDK API 8, revision 1

      Found Samples for SDK API 9, revision 1 (Obsolete)

      Found Samples for SDK API 10, revision 1

      Found Samples for SDK API 11, revision 1

      Found Samples for SDK API 12, revision 1

      Found Samples for SDK API 13, revision 1

      Found Samples for SDK API 14, revision 2

      Found Samples for SDK API 15, revision 2

      Found Samples for SDK API 16, revision 1

      Found Samples for SDK API 17, revision 1

      Found Samples for SDK API 18, revision 1

      Found Samples for SDK API 19, revision 5

      Found Android SDK Platform-tools, revision 19.0.1

      Found Android SDK Build-tools, revision 17

      Found Android SDK Build-tools, revision 18.0.1

      Found Android SDK Build-tools, revision 18.1

      Found Android SDK Build-tools, revision 18.1.1

      Found Android SDK Build-tools, revision 19

      Found Android SDK Build-tools, revision 19.0.1

      Found Android SDK Build-tools, revision 19.0.2

      Found Android SDK Build-tools, revision 19.0.3

      Found Android SDK Tools, revision 22.6.2

      Found Documentation for Android SDK, API 19, revision 2

      Found Sources for Android SDK, API 14, revision 1

      Found Sources for Android SDK, API 15, revision 2

      Found Sources for Android SDK, API 16, revision 2

      Found Sources for Android SDK, API 17, revision 1

      Found Sources for Android SDK, API 18, revision 1

      Found Sources for Android SDK, API 19, revision 2

    Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml

    Validate XML: https://dl-ssl.google.com/android/repository/addon.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/addon.xml

      Found Google APIs, Android API 3, revision 3

      Found Google APIs, Android API 4, revision 2

      Found Google APIs, Android API 5, revision 1 (Obsolete)

      Found Google APIs, Android API 6, revision 1 (Obsolete)

      Found Google APIs, Android API 7, revision 1

      Found Google APIs, Android API 8, revision 2

      Found Google APIs, Android API 9, revision 2 (Obsolete)

      Found Google APIs, Android API 10, revision 2

      Found Google APIs, Android API 11, revision 1

      Found Google APIs, Android API 12, revision 1

      Found Google APIs, Android API 13, revision 1

      Found Google APIs, Android API 14, revision 2

      Found Google APIs, Android API 15, revision 2

      Found Google APIs, Android API 16, revision 3

      Found Google APIs, Android API 17, revision 3

      Found Google APIs, Android API 18, revision 3

      Found Google APIs (ARM System Image), Android API 19, revision 4

      Found Google TV Addon, Android API 12, revision 2

      Found Google TV Addon, Android API 13, revision 1

      Found Android Support Library, revision 19

      Found Android Support Repository, revision 5

      Found Google Repository, revision 7

      Found Google Play Licensing Library, revision 2

      Found Google Play APK Expansion Library, revision 3

      Found Google Play services for Froyo, revision 12

      Found Google Play services, revision 16

      Found Google USB Driver, revision 9

      Found Google Play Billing Library, revision 5

      Found Google AdMob Ads SDK, revision 11 (Obsolete)

      Found Google Analytics App Tracking SDK, revision 3

      Found Google Web Driver, revision 2

      Found Google Cloud Messaging for Android Library, revision 3 (Obsolete)

    Fetching URL: https://dl-ssl.google.com/android/repository/addon-6.xml

    Validate XML: https://dl-ssl.google.com/android/repository/addon-6.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/addon-6.xml

      Found Android Support Library, revision 19.1

    Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml

    Validate XML: https://dl-ssl.google.com/glass/gdk/addon.xml

    Parse XML:    https://dl-ssl.google.com/glass/gdk/addon.xml

      Found Glass Development Kit Preview, Android API 19, revision 3

    Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml

    Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/extras/intel/addon.xml

      Found Intel x86 Emulator Accelerator (HAXM installer), revision 4

    Fetching URL: https://dl-ssl.google.com/android/repository/sys-img.xml

    Validate XML: https://dl-ssl.google.com/android/repository/sys-img.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/sys-img.xml

    Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/mips/sys-img.xml

    Validate XML: https://dl-ssl.google.com/android/repository/sys-img/mips/sys-img.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/mips/sys-img.xml

      Found MIPS System Image, Android API 15, revision 1

      Found MIPS System Image, Android API 16, revision 4

      Found MIPS System Image, Android API 17, revision 1

    Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml

    Validate XML: https://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml

      Found Intel x86 Atom System Image, Android API 10, revision 2

      Found Intel x86 Atom System Image, Android API 15, revision 1

      Found Intel x86 Atom System Image, Android API 16, revision 1

      Found Intel x86 Atom System Image, Android API 17, revision 1

      Found Intel x86 Atom System Image, Android API 18, revision 1

      Found Intel x86 Atom System Image, Android API 19, revision 2

    Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml

    Validate XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml

      Found Google APIs (x86 System Image), Android API 19, revision 4

    Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/android-wear-sys-img.xml

    Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/android-wear-sys-img.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/android-wear/android-wear-sys-img.xml

      Found Android Wear ARM EABI v7a System Image, Android API 19, revision 1

    Done loading packages.

    Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml

    Validate XML

    Parse XML

    Fetched Add-ons List successfully

    Fetching URL: https://dl-ssl.google.com/android/repository/repository-9.xml

    Validate XML: https://dl-ssl.google.com/android/repository/repository-8.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/repository-8.xml

      Found SDK Platform Android 1.1, API 2, revision 1 (Obsolete)

      Found SDK Platform Android 1.5, API 3, revision 4

      Found SDK Platform Android 1.6, API 4, revision 3

      Found SDK Platform Android 2.0, API 5, revision 1 (Obsolete)

      Found SDK Platform Android 2.0.1, API 6, revision 1 (Obsolete)

      Found SDK Platform Android 2.1, API 7, revision 3

      Found SDK Platform Android 2.2, API 8, revision 3

      Found SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)

      Found SDK Platform Android 2.3.3, API 10, revision 2

      Found SDK Platform Android 3.0, API 11, revision 2

      Found SDK Platform Android 3.1, API 12, revision 3

      Found SDK Platform Android 3.2, API 13, revision 1

      Found SDK Platform Android 4.0, API 14, revision 3

      Found SDK Platform Android 4.0.3, API 15, revision 3

      Found SDK Platform Android 4.1.2, API 16, revision 4

      Found SDK Platform Android 4.2.2, API 17, revision 2

      Found SDK Platform Android 4.3, API 18, revision 2

      Found SDK Platform Android 4.4.2, API 19, revision 3

      Found ARM EABI v7a System Image, Android API 14, revision 2

      Found ARM EABI v7a System Image, Android API 15, revision 2

      Found ARM EABI v7a System Image, Android API 16, revision 3

      Found ARM EABI v7a System Image, Android API 17, revision 2

      Found ARM EABI v7a System Image, Android API 18, revision 2

      Found ARM EABI v7a System Image, Android API 19, revision 2

      Found Samples for SDK API 7, revision 1

      Found Samples for SDK API 8, revision 1

      Found Samples for SDK API 9, revision 1 (Obsolete)

      Found Samples for SDK API 10, revision 1

      Found Samples for SDK API 11, revision 1

      Found Samples for SDK API 12, revision 1

      Found Samples for SDK API 13, revision 1

      Found Samples for SDK API 14, revision 2

      Found Samples for SDK API 15, revision 2

      Found Samples for SDK API 16, revision 1

      Found Samples for SDK API 17, revision 1

      Found Samples for SDK API 18, revision 1

      Found Samples for SDK API 19, revision 5

      Found Android SDK Platform-tools, revision 19.0.1

      Found Android SDK Build-tools, revision 17

      Found Android SDK Build-tools, revision 18.0.1

      Found Android SDK Build-tools, revision 18.1

      Found Android SDK Build-tools, revision 18.1.1

      Found Android SDK Build-tools, revision 19

      Found Android SDK Build-tools, revision 19.0.1

      Found Android SDK Build-tools, revision 19.0.2

      Found Android SDK Build-tools, revision 19.0.3

      Found Android SDK Tools, revision 22.6.2

      Found Documentation for Android SDK, API 19, revision 2

      Found Sources for Android SDK, API 14, revision 1

      Found Sources for Android SDK, API 15, revision 2

      Found Sources for Android SDK, API 16, revision 2

      Found Sources for Android SDK, API 17, revision 1

      Found Sources for Android SDK, API 18, revision 1

      Found Sources for Android SDK, API 19, revision 2

    Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml

    Validate XML: https://dl-ssl.google.com/android/repository/addon.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/addon.xml

      Found Google APIs, Android API 3, revision 3

      Found Google APIs, Android API 4, revision 2

      Found Google APIs, Android API 5, revision 1 (Obsolete)

      Found Google APIs, Android API 6, revision 1 (Obsolete)

      Found Google APIs, Android API 7, revision 1

      Found Google APIs, Android API 8, revision 2

      Found Google APIs, Android API 9, revision 2 (Obsolete)

      Found Google APIs, Android API 10, revision 2

      Found Google APIs, Android API 11, revision 1

      Found Google APIs, Android API 12, revision 1

      Found Google APIs, Android API 13, revision 1

      Found Google APIs, Android API 14, revision 2

      Found Google APIs, Android API 15, revision 2

      Found Google APIs, Android API 16, revision 3

      Found Google APIs, Android API 17, revision 3

      Found Google APIs, Android API 18, revision 3

      Found Google APIs (ARM System Image), Android API 19, revision 4

      Found Google TV Addon, Android API 12, revision 2

      Found Google TV Addon, Android API 13, revision 1

      Found Android Support Library, revision 19

      Found Android Support Repository, revision 5

      Found Google Repository, revision 7

      Found Google Play Licensing Library, revision 2

      Found Google Play APK Expansion Library, revision 3

      Found Google Play services for Froyo, revision 12

      Found Google Play services, revision 16

      Found Google USB Driver, revision 9

      Found Google Play Billing Library, revision 5

      Found Google AdMob Ads SDK, revision 11 (Obsolete)

      Found Google Analytics App Tracking SDK, revision 3

      Found Google Web Driver, revision 2

      Found Google Cloud Messaging for Android Library, revision 3 (Obsolete)

    Fetching URL: https://dl-ssl.google.com/android/repository/addon-6.xml

    Validate XML: https://dl-ssl.google.com/android/repository/addon-6.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/addon-6.xml

      Found Android Support Library, revision 19.1

    Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml

    Validate XML: https://dl-ssl.google.com/glass/gdk/addon.xml

    Parse XML:    https://dl-ssl.google.com/glass/gdk/addon.xml

      Found Glass Development Kit Preview, Android API 19, revision 3

    Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml

    Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/extras/intel/addon.xml

      Found Intel x86 Emulator Accelerator (HAXM installer), revision 4

    Fetching URL: https://dl-ssl.google.com/android/repository/sys-img.xml

    Validate XML: https://dl-ssl.google.com/android/repository/sys-img.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/sys-img.xml

    Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/mips/sys-img.xml

    Validate XML: https://dl-ssl.google.com/android/repository/sys-img/mips/sys-img.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/mips/sys-img.xml

      Found MIPS System Image, Android API 15, revision 1

      Found MIPS System Image, Android API 16, revision 4

      Found MIPS System Image, Android API 17, revision 1

    Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml

    Validate XML: https://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml

      Found Intel x86 Atom System Image, Android API 10, revision 2

      Found Intel x86 Atom System Image, Android API 15, revision 1

      Found Intel x86 Atom System Image, Android API 16, revision 1

      Found Intel x86 Atom System Image, Android API 17, revision 1

      Found Intel x86 Atom System Image, Android API 18, revision 1

      Found Intel x86 Atom System Image, Android API 19, revision 2

    Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml

    Validate XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml

      Found Google APIs (x86 System Image), Android API 19, revision 4

    Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/android-wear-sys-img.xml

    Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/android-wear-sys-img.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/android-wear/android-wear-sys-img.xml

      Found Android Wear ARM EABI v7a System Image, Android API 19, revision 1

    Done loading packages.

    Fetching URL: https://dl-ssl.google.com/android/repository/repository-9.xml

    Validate XML: https://dl-ssl.google.com/android/repository/repository-8.xml

    Parse XML:    https://dl-ssl.google.com/android/repository/repository-8.xml

      Found SDK Platform Android 1.1, API 2, revision 1 (Obsolete)

      Found SDK Platform Android 1.5, API 3, revision 4

      Found SDK Platform Android 1.6, API 4, revision 3

      Found SDK Platform Android 2.0, API 5, revision 1 (Obsolete)

      Found SDK Platform Android 2.0.1, API 6, revision 1 (Obsolete)

      Found SDK Platform Android 2.1, API 7, revision 3

      Found SDK Platform Android 2.2, API 8, revision 3

      Found SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)

      Found SDK Platform Android 2.3.3, API 10, revision 2

      Found SDK Platform Android 3.0, API 11, revision 2

      Found SDK Platform Android 3.1, API 12, revision 3

      Found SDK Platform Android 3.2, API 13, revision 1

      Found SDK Platform Android 4.0, API 14, revision 3

      Found SDK Platform Android 4.0.3, API 15, revision 3

      Found SDK Platform Android 4.1.2, API 16, revision 4

      Found SDK Platform Android 4.2.2, API 17, revision 2

      Found SDK Platform Android 4.3, API 18, revision 2

      Found SDK Platform Android 4.4.2, API 19, revision 3

      Found ARM EABI v7a System Image, Android API 14, revision 2

      Found ARM EABI v7a System Image, Android API 15, revision 2

      Found ARM EABI v7a System Image, Android API 16, revision 3

      Found ARM EABI v7a System Image, Android API 17, revision 2

      Found ARM EABI v7a System Image, Android API 18, revision 2

      Found ARM EABI v7a System Image, Android API 19, revision 2

      Found Samples for SDK API 7, revision 1

      Found Samples for SDK API 8, revision 1

      Found Samples for SDK API 9, revision 1 (Obsolete)

      Found Samples for SDK API 10, revision 1

      Found Samples for SDK API 11, revision 1

      Found Samples for SDK API 12, revision 1

      Found Samples for SDK API 13, revision 1

      Found Samples for SDK API 14, revision 2

      Found Samples for SDK API 15, revision 2

      Found Samples for SDK API 16, revision 1

      Found Samples for SDK API 17, revision 1

      Found Samples for SDK API 18, revision 1

      Found Samples for SDK API 19, revision 5

      Found Android SDK Platform-tools, revision 19.0.1

      Found Android SDK Build-tools, revision 17

      Found Android SDK Build-tools, revision 18.0.1

      Found Android SDK Build-tools, revision 18.1

      Found Android SDK Build-tools, revision 18.1.1

      Found Android SDK Build-tools, revision 19

      Found Android SDK Build-tools, revision 19.0.1

      Found Android SDK Build-tools, revision 19.0.2

      Found Android SDK Build-tools, revision 19.0.3

      Found Android SDK Tools, revision 22.6.2

      Found Documentation for Android SDK, API 19, revision 2

      Found Sources for Android SDK, API 14, revision 1

      Found Sources for Android SDK, API 15, revision 2

      Found Sources for Android SDK, API 16, revision 2

      Found Sources for Android SDK, API 17, revision 1

      Found Sources for Android SDK, API 18, revision 1

      Found Sources for Android SDK, API 19, revision 2

    6.2 解析地址程序

    用到dom4j-1.6.1.jar库,请自行下载。

    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.Iterator;
    import java.util.List;

    import org.dom4j.Document;
    import org.dom4j.DocumentException;
    import org.dom4j.Element;
    import org.dom4j.io.SAXReader;

    /**
     * 2014-04-20: wintys changed From ZQY's URLFinder
     * ==============================================
     * This program allow you to catch the URL of the installation packages
     * download by Android SDK Manager. Run this program and get packages'URLs
     * in the urlfile.txt, copy them to Download Tools to download them faster.
     * (The speed is extremely slow in China.)
     * Copy the downloaded packages to {your installation path of Android SDK}/temp
     * and install them fast in SDK Manager. Enjoy.
     *  
     * @author ZQY
     *
     */
    public class AndroidSDKUrlParse {
        /* the XML files the SDK Manager read... */
        public static final String repository = "http://dl-ssl.google.com/android/repository/repository-8.xml";
        public static final String addon = "http://dl-ssl.google.com/android/repository/addon.xml";
        public static final String addon6 = "https://dl-ssl.google.com/android/repository/addon-6.xml";
        
        public static final String addon2 = "http://software.intel.com/sites/landingpage/android/addon.xml";
        public static final String sysimg = "http://www.mips.com/global/sdk-sys-img.xml";
        public static final String sysimg2 = "http://download-software.intel.com/sites/landingpage/android/sys-img.xml";
        
        
        public static final String[] repos = { repository, addon , addon6};
        

        public static void main(String[] args) throws MalformedURLException,
                DocumentException {
            BufferedWriter out = null;
            try {
                File file = new File("urlfile.txt");
                out = new BufferedWriter(new FileWriter(file));
                for (String repo : repos) {
                    try{
                    Document doc = read(repo);
                    findurl(doc.getRootElement(), out);
                    }catch(Exception e){
                        e.printStackTrace();
                    }
                }
                out.close();
            } catch (FileNotFoundException e) {
                System.err.println("URL does not exits.");
            } catch (IOException e) {
                System.err.println("error write output file.");
            }

        }
        
        /* find the <sdk:url/> tag, and get the absolute path of the file */
        public static void findurl(Element element, BufferedWriter out)
                throws IOException {
            List<?> list = element.elements();
            for (Iterator<?> its = list.iterator(); its.hasNext();) {
                Element e = (Element) its.next();
                if (e.getName().equals("url")) {
                    String text = e.getText();
                    String url = "";
                    if(text != null && !text.startsWith("http")){
                        url = "http://dl-ssl.google.com/android/repository/"+ text;
                    }else{
                        url = text ;
                    }
                    url += " ";
                    System.out.println(text);
                    out.write(url);
                }
                findurl(e, out);
            }
        }

        public static Document read(String fileName) throws MalformedURLException,
                DocumentException {
            SAXReader reader = new SAXReader();
            Document document = reader.read(new URL(fileName));
            return document;
        }
    }

    运行结果:

    android-1.1_r1-windows.zip

    android-1.1_r1-macosx.zip

    android-1.1_r1-linux.zip

    android-1.5_r04-windows.zip

    android-1.5_r04-macosx.zip

    android-1.5_r04-linux.zip

    android-1.6_r03-linux.zip

    android-1.6_r03-macosx.zip

    android-1.6_r03-windows.zip

    android-2.0_r01-linux.zip

    android-2.0_r01-macosx.zip

    android-2.0_r01-windows.zip

    android-2.0.1_r01-linux.zip

    android-2.0.1_r01-macosx.zip

    android-2.0.1_r01-windows.zip

    android-2.1_r03-linux.zip

    android-2.2_r03-linux.zip

    android-2.3.1_r02-linux.zip

    android-2.3.3_r02-linux.zip

    android-3.0_r02-linux.zip

    android-3.1_r03-linux.zip

    android-3.2_r01-linux.zip

    android-14_r03.zip

    android-15_r03.zip

    android-16_r04.zip

    android-17_r02.zip

    android-18_r02.zip

    android-19_r03.zip

    sysimg_armv7a-14_r02.zip

    sysimg_armv7a-15_r02.zip

    sysimg_armv7a-16_r03.zip

    sysimg_armv7a-17_r02.zip

    sysimg_armv7a-18_r02.zip

    sysimg_armv7a-19_r02.zip

    samples-2.1_r01-linux.zip

    samples-2.2_r01-linux.zip

    samples-2.3_r01-linux.zip

    samples-2.3.3_r01-linux.zip

    samples-3.0_r01-linux.zip

    samples-3.1_r01-linux.zip

    samples-3.2_r01-linux.zip

    samples-14_r02.zip

    samples-15_r02.zip

    samples-16_r01.zip

    samples-17_r01.zip

    samples-18_r01.zip

    samples-19_r05.zip

    platform-tools_r19.0.1-windows.zip

    platform-tools_r19.0.1-linux.zip

    platform-tools_r19.0.1-macosx.zip

    build-tools_r17-windows.zip

    build-tools_r17-linux.zip

    build-tools_r17-macosx.zip

    build-tools_r18.0.1-windows.zip

    build-tools_r18.0.1-linux.zip

    build-tools_r18.0.1-macosx.zip

    build-tools_r18.1-windows.zip

    build-tools_r18.1-linux.zip

    build-tools_r18.1-macosx.zip

    build-tools_r18.1.1-windows.zip

    build-tools_r18.1.1-linux.zip

    build-tools_r18.1.1-macosx.zip

    build-tools_r19-windows.zip

    build-tools_r19-linux.zip

    build-tools_r19-macosx.zip

    build-tools_r19.0.1-windows.zip

    build-tools_r19.0.1-linux.zip

    build-tools_r19.0.1-macosx.zip

    build-tools_r19.0.2-windows.zip

    build-tools_r19.0.2-linux.zip

    build-tools_r19.0.2-macosx.zip

    build-tools_r19.0.3-windows.zip

    build-tools_r19.0.3-linux.zip

    build-tools_r19.0.3-macosx.zip

    tools_r22.6.2-windows.zip

    tools_r22.6.2-linux.zip

    tools_r22.6.2-macosx.zip

    docs-19_r02.zip

    sources-14_r01.zip

    sources-15_r02.zip

    sources-16_r02.zip

    sources-17_r01.zip

    sources-18_r01.zip

    sources-19_r02.zip

    google_apis-3-r03.zip

    google_apis-4_r02.zip

    google_apis-5_r01.zip

    google_apis-6_r01.zip

    google_apis-7_r01.zip

    google_apis-8_r02.zip

    google_apis-9_r02.zip

    google_apis-10_r02.zip

    google_apis-11_r01.zip

    google_apis-12_r01.zip

    google_apis-13_r01.zip

    google_apis-14_r02.zip

    google_apis-15_r02.zip

    google_apis-16_r03.zip

    google_apis-17_r03.zip

    google_apis-18_r03.zip

    google_apis-19_r04.zip

    google_tv-12_r02.zip

    google_tv-13_r01.zip

    support_r19.zip

    android_m2repository_r05.zip

    google_m2repository_r07.zip

    market_licensing-r02.zip

    market_apk_expansion-r03.zip

    google_play_services_3265130_r12.zip

    google_play_services_4323030_r16.zip

    usb_driver_r09-windows.zip

    play_billing_r05.zip

    https://dl-ssl.google.com/googleadmobadssdk/googleadmobadssdkandroid-6.4.1.zip

    https://dl.google.com/gaformobileapps/GoogleAnalyticsAndroid_2.0beta5.zip

    webdriver_r02.zip

    gcm_r03.zip

    support_r19.1.zip

    6.3 Android SDK 22.6.2离线下载地址

    通过分析上面的地址,可以得到如下离线下载地址对应关系。

    6.3.1 tools(必须安装)

    Android SDK Tools 、 Andorid SDK Platform-tools、 Android SDK Build-tools分别对应:

    6.3.2 Android 4.4.2 (API 19)  (当前最新版本)

    Android 4.4.2 (API 19)已安装的部分分别对应离线下载地址:

    6.3.3 Android 2.2 (API 8)  (可根据兼容性需求选择安装)

    Android 2.2 (API 8) 分别 对应离线下载地址:

    6.3.4 Extras  

        Android Support Library和Google USB Driver必须安装。
    Android Support Library和Google USB Driver分别 对应离线下载地址:

    7 其他

    7.1 ADT22.6.2 新建一个android项目多出一个appcompat_v7项目

    appcompat_v7是google自己的兼容包,右键你的工程->properties->android,就会发现在library里面有import appcompat_v7,不能随便删除,删除后android工程会报错。建立Android Application的时候,只需要将Minimum Required SDK选择到Android 4.0版本(即API 14),就不会在出现appcompat_v7这个内容啦。
    【Reference】
    [1] 《最新Android 4.x 搭建开发环境》 : http://www.open-open.com/lib/view/open1386252535564.html
    [2]*《离线安装配置Android SDK方法》:  http://my.oschina.net/unclegeek/blog/94364
    [3] 《Android SDK 离线安装方法》 : http://www.cnblogs.com/zuike/p/3330939.html 
    [4] 《关于Eclipse创建Android项目时,会多出一个appcompat_v7的问题》 : http://blog.sina.com.cn/s/blog_9653ee0f0101jeaf.html
    作者:wintys (wintys@gmail.com)  出处:http://wintys.cnblogs.com   欢迎转载,转载请注明作者及出处。
  • 相关阅读:
    微信小程序,地址助手
    Cordova 项目,升级 Xcode 从 10.3 到 11.0 扫坑日记
    MySQL 重启提示超出可打开文件数限制|Buffered warning: Changed limits: max_open_files: 1024
    “基于名称”的虚拟主机支持
    阿里云免费证书配置
    微信小程序开发常见问题
    webpack 打包压缩 ES6文件报错UglifyJs + Unexpected token punc «(», expected punc «:»
    本地不安装webpack,找不到webpack包
    Hdu1097(计算a的b次幂最后一位数值)
    计算某天是所在年的第几天
  • 原文地址:https://www.cnblogs.com/wintys/p/android_hello_world.html
Copyright © 2020-2023  润新知