现在使用eclipse+adt已经不是android官方的推荐android开发环境了,使用android studio能更好的使用android的新特性和拥有更好的编译环境,具体优点有:1.智能代码编辑器(Intelligent code editor)2.代码模板以及整合github(Code templates and GitHub integration)3.多种app-screen适用开发(Multi-screen app development)...所以能看出来使用android SDK能更好的开发android程序,但是因为本人找到的视频及文档教程为eclipse+adt所以还是从官网上翻译了该文。
一、ADT下载
1、打开eclipse,选择帮助/安装新软件( Help > Install New Software...);
2、点击右上角的添加(add)按钮;
3、在添加弹出的对话框中Name栏输入 "ADT Plugin",Location栏输入下面地址
1.Start Eclipse, then select Help > Install New Software....
2.Click Add, in the top-right corner.
3.In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
4.Click OK
Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
5.In the Available Software dialog, select the checkbox next to Developer Tools and click 后一个.
6.In the next window, you'll see a list of the tools to be downloaded. Click 后一个.
7.Read and accept the license agreements, then click Finish.
Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
8.When the installation completes, restart Eclipse.
二、ADT配置
当你安装了ADT之后,你必须选择你Android SDK文件夹的位置
1、选择Window>Preferences...来打开preference面板(如果是mac os x,选择eclipse>preferences)
2、在面板左边选择android。
3、在主面板中的SDK Location选项,点击Browse...然后选择你存放Android SDK的文件夹。
4、点击应用,OK;
原文:
After you've installed ADT and restarted Eclipse, you must specify the location of your Android SDK directory:
- Select Window > Preferences... to open the Preferences panel (on Mac OS X, select Eclipse > Preferences).
- Select Android from the left panel.
You may see a dialog asking whether you want to send usage statistics to Google. If so, make your choice and clickProceed.
- For the SDK Location in the main panel, click Browse... and locate your downloaded Android SDK directory (such as).
- Click Apply, then OK.
If you haven't encountered any errors, you're done setting up ADT and can continue to the next step of the SDK installation.
三、问题解决
如果ADT的安装是在有问题,可以按照如下的步骤本地安装。
1.下载ADT Plugin zip文件,地址如下(ADT-23能兼容现在使用的ADT-24的最新版本):
http://pan.baidu.com/s/1nqANO 密码:mqtm
2.如(一)中1、2部所做。
3.在填写网址的对话框中选择Archive按钮。
4.浏览并选择刚下载的zip文件。
5.在name字段中输入一个名字(比如Android Plugin)
6.点击OK.
7.然后按照下载ADT步骤4之后的步骤一步步操作。
原文:
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:
- Download the current ADT Plugin zip file from the table below (do not unpack it).
- Follow steps 1 and 2 in the default install instructions (above).
- In the Add Site dialog, click Archive.
- Browse and select the downloaded zip file.
- Enter a name for the local update site (e.g., "Android Plugin") in the "Name" field.
- Click OK.
- Follow the remaining procedures as listed for default installation above, starting from step 4.