ADT下载和安装.doc_第1页
ADT下载和安装.doc_第2页
ADT下载和安装.doc_第3页
ADT下载和安装.doc_第4页
ADT下载和安装.doc_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

ADT下载和安装/sdk/installing/installing-adt.htmlInstalling the Eclipse PluginAndroid offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT). This plugin provides a powerful, integrated environment in which to develop Android apps. It extends the capabilities of Eclipse to let you quickly set up new Android projects, build an app UI, debug your app, and export signed (or unsigned) app packages (APKs) for distribution.If you need to install Eclipse, you can download it /mobile.Note:If you prefer to work in a different IDE, you do not need to install Eclipse or ADT. Instead, you can directly use the SDK tools to build and debug your application.Download the ADT Plugin1. Start Eclipse, then selectHelpInstall New Software.2. ClickAdd, in the top-right corner.3. In the Add Repository dialog that appears, enter ADT Plugin for theNameand the following URL for theLocation:/android/eclipse/4. ClickOK.If you have trouble acquiring the plugin, try using http in the Location URL, instead of https (https is preferred for security reasons).5. In the Available Software dialog, select the checkbox next to Developer Tools and clickNext.6. In the next window, youll see a list of the tools to be downloaded. ClickNext.7. Read and accept the license agreements, then clickFinish.If you get a security warning saying that the authenticity or validity of the software cant be established, clickOK.8. When the installation completes, restart Eclipse.Configure the ADT PluginOnce Eclipse restarts, you must specify the location of your Android SDK directory:1. In the Welcome to Android Development window that appears, selectUse existing SDKs.2. Browse and select the location of the Android SDK directory you recently downloaded and unpacked.3. ClickNext.Your Eclipse IDE is now set up to develop Android apps, but you need to add the latest SDK platform tools and an Android platform to your environment. To get these packages for your SDK, continue toAdding Platforms and Packages.Troubleshooting InstallationIf you are having trouble downloading the ADT plugin after following the steps above, here are some suggestions: If Eclipse can not find the remote update site containing the ADT plugin, try changing the remote site URL to use http, rather than https. That is, set the Location for the remote site to:/android/eclipse/ If you are behind a firewall (such as a corporate firewall), make sure that you have properly configured your proxy settings in Eclipse. In Eclipse, you can configure proxy information from the main Eclipse menu inWindow(on Mac OS X,Eclipse) PreferencesGeneralNetwork Connections.If you are still unable to use Eclipse to download the ADT plugin as a remote update site, you can download the ADT zip file to your local machine and manually install it:1. Download the ADT Plugin zip file (do not unpack it):PackageSizeMD5 ChecksumADT-21.1.0.zip13564671 bytesf1ae183891229784bb9c33bcc9c5ef1e2. Start Eclipse, then selectHelpInstall New Software.3. ClickAdd, in the top-right corner.4. In the Add Repository dialog, clickArchive.5. Select the downloaded ADT-21.1.0.zip file and clickOK.6. Enter ADT Plugin for the name and clickOK.7. In the Available Software dialog, select the checkbox next to Developer Tools and clickNext.8. In the next window, youll see a list of the tools to be downloaded. ClickNext.9. Read and accept the license agreements, then clickFinish.If you get a security warning saying that the authenticity or validity of the software cant be established, clickOK.10. When the installation completes, restart Eclipse.To update your plugin once youve installed using the zip file, you will have to follow these steps again instead of the default update instructions.Other install errorsNote that there are features of ADT that require some optional Eclipse packages (for example, WST). If you encounter an error when installing ADT, your Eclipse installion might not include these packages. For information about how to quickly add the necessary packages to your Eclipse installation, see the troubleshooting topicADT Installation Error: requires plug-in org.eclipse.wst.sse.ui.翻译安装Eclipse插件Android提供了一个自定义插件为Eclipse IDE,叫做Android开发工具(ADT)。该插件提供了一个强大的,集成的环境中开发Android应用程序。它扩展了Eclipse的功能,让您快速建立新的Android项目,建立一个应用程序的用户界面,调试你的应用程序,并出口签署(或无符号)的应用程序包(的APK)分布。如果你需要安装Eclipse,你可以从这里下载 /移动。注:如果你喜欢的工作在不同的IDE,你并不需要安装Eclipse ADT。相反,你可以直接使用SDK工具来构建和调试您的应用程序。下载ADT插件1. 启动Eclipse,然后选择“帮助“安装新软件。2. 单击“添加“,在右上角。3. 在添加存储库出现的对话框中,输入“ADT插件”的名称和下面的URL的位置:/android/eclipse/4. 单击“确定”。如果你有获得插件时遇到问题,请尝试使用“http”的位置的URL,而不是“https”开头(https是首选出于安全原因)。5. 在可用的软件“对话框中,选择开发工具旁边的复选框,然后单击”Next“(下一步)。6. 在下一个窗口中,你会看到一个要下载的工具列表。单击“下一步“。7. 阅读并接受许可协议,然后单击“完成“。如果你得到一个安全警告说,不能成立的真实性或有效性的软件,单击“确定”。8. 当安装完成后,重新启动Eclipse。配置ADT插件当Eclipse重新启动,你必须指定你的Android SDK目录中的位置:1. 在“Android开发”窗口中,选择“使用现有的软件开发工具包。2. 浏览并选择您最近下载并解压Android SDK目录的位置。3. 单击“下一步“。您的Eclipse IDE开发Android应用程序,但你需要添加最新的SDK平台工具和Android平台到您的环境。这些软件包为您的SDK,不断增加的平台和软件包。故障排除安装如果您有麻烦下载的ADT插件按照上述步骤之后,这里有一些建议: 如果Eclipse无法找到远程更新站点,包含ADT插件,尝试改变远程站点的URL使用http,而不是https。也就是说,设置远程站点的位置:/android/eclipse/ 如果你是在防火墙后面(如公司防火墙),请确保您已经正确配置了代理服务器设置在Eclipse中。在Eclipse中,您可以配置代理信息窗口(在Mac OS X,Eclipse的Eclipse主菜单)首选项常规网络连接。如果您仍然无法使用Eclipse远程更新站点下载的ADT插件,你可以下载ADT压缩文件到本地机器上,并手动安装它:1. 下载ADT插件zip文件(不要解压):包大小MD5校验ADT-21.1.0.zip13564671字节f1ae183891229784bb9c33bcc9c5ef1e2. 启动Eclipse,然后选择“帮助“安装新软件。3. 单击“添加“,在右上角。4. 在“添加存储库”对话框中,单击“存档“。5. 选择的下载ADT-21.1.0.zip的文件,然后单击“确定”。6. 输入“ADT插件”的名称,然后单击“确定”。7. 在可用的软件“对话框中,选择开发工具旁边的复选框,然后单击”Next“(下一步)。8. 在下一个窗口中,你会看到一个要下载的工具列表。单击“下一步“。9. 阅读并接受许可协议,然后单击“完成“。如果你得到一个安全警告说,不能成立的真实性或有效性的软件,单击“确定”。10. 当安装完成后,重新启动Eclipse。一旦你已经安装了更新的插件用的是zip文件,你将不得不再次请按照下列步骤操作,而不是默认的更新说明。其他安装错误需要注意的是有特色的ADT需要一些可选的Eclipse包(例如,WST)。如果你遇到一个错误时,安装ADT,您的的Eclipse的installion可能不包含这些软件包。如何快速添加到Eclipse安装必要的软件包的信息,请参阅故障排除主题ADT安装错误:,“需要插件org.eclipse.wst.sse.ui”。Adding Platforms and PackagesThe Android SDK separates tools, platforms, and other components into packages you can download using the Android SDK Manager. The original SDK package youve downloaded includes only the SDK Tools. To develop an Android app, you also need to download at least one Android platform and the latest SDK Platform-tools.1. Launch the SDK Manager.If youve used the Windows installer to install the SDK tools, you should already have the Android SDK Manager open. Otherwise, you can launch the Android SDK Manager in one of the following ways:o On Windows, double-click theSDK Manager.exefile at the root of the Android SDK directory.o On Mac or Linux, open a terminal and navigate to thetools/directory in the Android SDK, then executeandroid sdk.2. The SDK Manager shows all the SDK packages available for you to add to your Android SDK. As a minimum configuration for your SDK, we recommend you install the following:o The latest Tools packages (check theToolsfolder).o The latest version of Android (check the firstAndroidfolder).o The Android Support Library (open theExtrasfolder and checkAndroid Support Library).Once youve chosen your packages, clickInstall. The Android SDK Manager installs the selected packages into your Android SDK environment.With these packages installed, youre ready to start developing. To get started, readBuilding Your First App.Figure 1.The Android SDK Manager shows the SDK packages that are available, already installed, or for which an update is available.Additional information For more information about using the SDK Manager and some of the available packages, see theSDK Managerdocument. This web site provides all information you need to develop Android apps, includingdesign guidelines,developer training,API reference, and information about how you candistribute your app. We recommend you begin by readingBuilding Your First App.

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论