blob: 4de602227c7fb7bcf58bcd8ce68610d54008b188 [file] [log] [blame]
page.title=下载 Android Studio 和 SDK 工具
page.tags=sdk, android studio
page.template=sdk
page.image=images/cards/android-studio_2x.png
header.hide=1
page.metaDescription=下载官方 Android IDE 和开发者工具,构建适用于 Android 手机、平板电脑、可穿戴设备、电视等设备的应用。
@jd:body
<style type="text/css">
.offline {display:none;}
h2.feature {
padding-top:30px;
margin-top:0;
clear:both;
}
.feature-blurb {
margin:0px; font-size:16px; font-weight:300;
padding-top:40px;
}
.landing-button .small {
font-size: 12px;
font-weight: normal;
line-height: 12px;
display: block;
}
h1.studio-logo {
width:226px;
height:78px;
display:block;
padding:0;
white-space: nowrap;
text-indent: -10000px;
font-size:0px;
background: url({@docRoot}images/tools/studio-logo.png);
background-image: -webkit-image-set(url({@docRoot}images/tools/studio-logo.png) 1x, url({@docRoot}images/tools/studio-logo_2x.png) 2x);
background-size: 226px 78px;
}
</style>
<div style="position:relative;">
<div class="wrap" id="tos" style="display:none;width:inherit;height:650px">
<div class="col-13" style="margin:0;">&nbsp;</div><!-- provides top margin for content -->
<h1 id="tos-header" style="margin-top:0">下载</h1>
<p class="sdk-terms-intro">在安装 Android Studio 或独立 SDK
工具之前,您必须同意下列条款和条件。</p>
<div class="sdk-terms" onfocus="this.blur()">
<h2 class="norule">条款和条件</h2>
本协议是 Android 软件开发工具包许可协议
<h3>1. Introduction</h3>
1.1 The Android Software Development Kit (referred to in the 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 the License Agreement. The 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 A "compatible implementation" means any Android device that (i) complies with the Android Compatibility Definition document, which can be found at the Android compatibility website (http://source.android.com/compatibility) and which may be updated from time to time; and (ii) successfully passes the Android Compatibility Test Suite (CTS).
1.4 "Google" means Google Inc., a Delaware corporation with principal place of business at 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States.
<h3>2. Accepting this License Agreement</h3>
2.1 In order to use the SDK, you must first agree to the License Agreement. You may not use the SDK if you do not accept the License Agreement.
2.2 By clicking to accept, you hereby agree to the terms of the 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 the 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 the 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.
<h3>3. SDK License from Google</h3>
3.1 Subject to the terms of the License Agreement, Google grants you a limited, worldwide, royalty-free, non-assignable, non-exclusive, and non-sublicensable license to use the SDK solely to develop applications for compatible implementations of Android.
3.2 You may not use this SDK to develop applications for other platforms (including non-compatible implementations of Android) or to develop another SDK. You are of course free to develop applications for other platforms, including non-compatible implementations of Android, provided that this SDK is not used for that purpose.
3.3 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.4 You may not use the SDK for any purpose not expressly permitted by the 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.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 the 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 the 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.
<h3>4. Use of the SDK by You</h3>
4.1 Google agrees that it obtains no right, title or interest from you (or your licensors) under the 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) the 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 the 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.
<h3>5. Your Developer Credentials</h3>
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.
<h3>6. Privacy and Information</h3>
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.
<h3>7. Third Party Applications</h3>
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, the License Agreement does not affect your legal relationship with these third parties.
<h3>8. Using Android APIs</h3>
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.
<h3>9. Terminating this License Agreement</h3>
9.1 The License Agreement will continue to apply until terminated by either you or Google as set out below.
9.2 If you want to terminate the 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 the License Agreement with you if:
(A) you have breached any provision of the 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 the 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 the 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.
<h3>10. DISCLAIMER OF WARRANTIES</h3>
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.
<h3>11. LIMITATION OF LIABILITY</h3>
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.
<h3>12. Indemnification</h3>
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 the License Agreement.
<h3>13. Changes to the License Agreement</h3>
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.
<h3>14. General Legal Terms</h3>
14.1 The 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 the 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 the License Agreement is invalid, then that provision will be removed from the License Agreement without affecting the rest of the License Agreement. The remaining provisions of the 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 the License Agreement and that such other companies shall be entitled to directly enforce, and rely upon, any provision of the 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 the 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 the 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 the License Agreement without the prior written approval of the other party.
14.7 The License Agreement, and your relationship with Google under the 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 the 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.
<em>November 20, 2015</em>
</div>
<div id="next-steps" style="display:none;position:absolute;width:inherit">
<p>您距离构建 Android 应用只有几步之遥!</p>
<p>系统很快就会将您重定向到
<a id="next-link" href="{@docRoot}sdk/installing/index.html">安装 Android SDK</a>。</p>
</div><!-- end next-steps -->
<div id="sdk-terms-form">
<p>
<input id="agree" type="checkbox" name="agree" value="1" onclick="onAgreeChecked()" />
<label id="agreeLabel" for="agree">我已阅读并同意上述条款和条件</label>
</p>
<p><a href="" class="button disabled" id="downloadForRealz" onclick="return onDownloadForRealz(this);"></a></p>
</div>
</div><!-- end TOS -->
<div id="landing">
<div class="col-13">&nbsp;</div><!-- provides top margin for content -->
<img src="{@docRoot}images/tools/studio-hero.png" srcset="{@docRoot}images/tools/studio-hero_2x.png 2x, {@docRoot}images/tools/studio-hero.png 1x" width="760" height="400"/>
<div style="color: #fff; width:226px; height:0; overflow:visible; position:absolute; top:40px; left:25px">
<h1 class="studio-logo" style="margin:0 0 35px !important">Android Studio</h1>
<p style="font-size: 16px; color:#bbb; position: absolute;left: 297px; top: 5px; display: block;
width: 400px;text-align: center;">官方 Android IDE</p>
<ul style="font-size:12px;line-height:19px;">
<li>Android Studio IDE</li>
<li>Android SDK 工具</li>
<li>Android 6.0 (Marshmallow) 平台</li>
<li>Android 6.0 模拟器系统映像(附带 Google API)</li>
</ul>
<a class="online landing-button green download-bundle-button"
href="#Other" >Download Android Studio<br/><span class='small'></span></a>
<!-- this appears when viewing the offline docs -->
<p class="offline">
如需获得 Android Studio 或独立 SDK 工具,请访问 <a href="http://developer.android.com/sdk/index.html">developer.android.com/sdk/</a>
</p>
</div>
<ul>
<li><a href="#Requirements">系统要求</a></li>
<li><a href="#Other">其他下载选项</a></li>
<li><a href="{@docRoot}sdk/installing/migrate.html">迁移至 Android Studio</a></li>
<li><a href="https://docs.google.com/a/google.com/forms/d/1mjsyfzv3HAnDY-_Kfj-3QJKdpuksyMFs9e73CRwmT6Q/viewform" target="_blank">参加调查</a></li>
</ul>
<h2 class="feature norule" >智能代码编辑器</h2>
<div class="col-9">
<img src="{@docRoot}images/tools/studio-hero-code.png" srcset="{@docRoot}images/tools/studio-hero-code_2x.png 2x, {@docRoot}images/tools/studio-hero-code.png 1x" width="520" />
</div><!-- end col-9 (left column) -->
<div class="col-4 feature-blurb">
<p>Android Studio 的核心是一个智能代码编辑器,可进行高级代码完成、重构和代码分析。
</p>
<p>这款功能强大的代码编辑器可帮助您成为更高产的 Android 应用开发者。</p>
</div>
<h2 class="feature norule">代码模板和 GitHub 集成</h2>
<div class="col-9">
<img src="{@docRoot}images/tools/studio-hero-import.png" srcset="{@docRoot}images/tools/studio-hero-import_2x.png 2x, {@docRoot}images/tools/studio-hero-import.png 1x" width="520" />
</div><!-- end col-9 (left column) -->
<div class="col-4 feature-blurb">
<p>新项目向导让开始一个新项目变得前所未有的简单。</p>
<p>可使用适用于不同模式(如抽屉式导航栏和视图分页器)的模板代码开始项目,甚至可以从 GitHub
导入 Google 代码示例。</p>
</div>
<h2 class="feature norule">多屏幕应用开发</h2>
<div class="col-9">
<img src="{@docRoot}images/tools/studio-hero-screens.png" srcset="{@docRoot}images/tools/studio-hero-screens_2x.png 2x, {@docRoot}images/tools/studio-hero-screens.png 1x" width="520" />
</div><!-- end col-9 (left column) -->
<div class="col-4 feature-blurb">
<p>构建适用于 Android 手机、平板电脑、Android Wear、Android TV、Android Auto
以及 Google Glass 的应用。</p>
<p>Android Studio 内全新的 Android
项目视图和模块支持让应用项目和资源管理变得更加轻松。
</div>
<h2 class="feature norule">用于模拟所有形状和尺寸的虚拟设备</h2>
<div class="col-9">
<img src="{@docRoot}images/tools/studio-hero-avds.png" srcset="{@docRoot}images/tools/studio-hero-avds_2x.png 2x, {@docRoot}images/tools/studio-hero-avds.png 1x" width="520" />
</div><!-- end col-9 (left column) -->
<div class="col-4 feature-blurb">
<p>Android Studio 预先配置了经过优化的模拟器映像。</p>
<p>经过更新和精简的虚拟设备管理器可为常见 Android
设备提供预定义设备配置文件。</p>
</div>
<h2 class="feature norule">
Android 版本借助 Gradle 演进</h2>
<div class="col-9">
<img src="{@docRoot}images/tools/studio-hero-gradle.png" srcset="{@docRoot}images/tools/studio-hero-gradle_2x.png 2x, {@docRoot}images/tools/studio-hero-gradle.png 1x" width="520" />
</div><!-- end col-9 (left column) -->
<div class="col-4 feature-blurb">
<p>使用同一项目为您的 Android 应用创建多个具有不同功能的 APK。</p>
<p>使用 Maven 管理应用依赖项。</p>
<p>使用 Android Studio 或命令行构建 APK。</p>
</div>
<h2 class="feature norule">有关 Android Studio 的详细信息</h2>
<div style="background:#424242;padding:30px; color:#fff;margin:0 0 15px;">
<a class="online landing-button green download-bundle-button" style="margin:0 0 40px 60px;float:right" href="">Download</a>
<ul>
<li>这款由 JetBrains 推出并广受欢迎的 Java IDE 以 IntelliJ IDEA Community Edition 为基础构建</li>
<li>基于 Gradle 的灵活构建系统</li>
<li>构建变体和多 APK 生成</li>
<li>为 Google 服务和各种设备类型提供扩展模板支持</li>
<li>支持主题编辑的富布局编辑器</li>
<li>可捕捉性能、可用性、版本兼容性以及其他问题的 Lint 工具</li>
<li>ProGuard 和应用签名功能</li>
<li>内置对 Google 云平台的支持,可轻松集成 Google Cloud
Messaging 和应用引擎</li>
</ul>
<p style="margin:0">
有关 Android Studio
所提供功能的更多详细信息,请阅读 <a href="{@docRoot}tools/studio/index.html">Android Studio 基础知识</a>指南。</p>
</div>
<p>如果您一直在使用附带 ADT 的 Eclipse,请注意 Android Studio 现已成为 Android
的官方 IDE,因此您应迁移至 Android Studio,以获得所有最新的 IDE
更新。如果在迁移项目时需要帮助,请参阅<a href="{@docRoot}sdk/installing/migrate.html">迁移至
Android
Studio</a>。</p>
<h2 id="Requirements">系统要求</h2>
<h3>Windows</h3>
<ul>
<li>Microsoft&reg; Windows&reg; 8/7/Vista/2003(32 位或 64 位)</li>
<li>最低:2GB RAM,推荐:4GB RAM</li>
<li>400MB 硬盘空间</li>
<li>Android SDK、模拟器系统映像及缓存至少需要 1GB 空间</li>
<li>最低屏幕分辨率:1280 x 800</li>
<li>Java 开发工具包 (JDK) 7 </li>
<li>用于加速模拟器的选件:支持 Intel® VT-x、Intel® EM64T (Intel® 64) 和禁止执行
(XD) 位功能的 Intel® 处理器</li>
</ul>
<h3>Mac OS X</h3>
<ul>
<li>Mac&reg; OS X&reg; 10.8.5 或更高版本,直至 10.9 (Mavericks)</li>
<li>最低:2GB RAM,推荐:4GB RAM</li>
<li>400MB 硬盘空间</li>
<li>Android SDK、模拟器系统映像及缓存至少需要 1GB 空间</li>
<li>最低屏幕分辨率:1280 x 800</li>
<li>Java 运行组件环境 (JRE) 6</li>
<li>Java 开发工具包 (JDK) 7</li>
<li>用于加速模拟器的选件:支持 Intel® VT-x、Intel® EM64T (Intel® 64)
和禁止执行 (XD) 位功能的 Intel® 处理器</li>
</ul>
<p>在 Mac OS 上运行附带 Java 运行组件环境 (JRE) 6 的 Android Studio
可优化字体渲染。您随后可将您的项目配置为使用 Java 开发工具包 (JDK) 6 或 JDK 7。</p>
<h3>Linux</h3>
<ul>
<li>GNU 网络对象模型环境或 KDE 桌面</li>
<li>GNU C Library (glibc) 2.15 或更高版本</li>
<li>最低:2GB RAM,推荐:4GB RAM</li>
<li>400MB 硬盘空间</li>
<li>Android SDK、模拟器系统映像及缓存至少需要 1GB 空间</li>
<li>最低屏幕分辨率:1280 x 800</li>
<li>Oracle&reg; Java 开发工具包 (JDK) 7 </li>
</ul>
<p>已在
Ubuntu&reg; 14.04 (Trusty Tahr)(能够运行 32 位应用的 64 位分发)上进行了测试。</p>
<h2 id="Other" style="clear:left">其他下载选项</h2>
<!-- alternative SDK options follows -->