- 工具
- JDK
- Android SDK
- IDE(在此以Myeclipse 2014为例)
- ADT
- 配置开发平台
-
JDK的安装与环境变量的配置
Path:JDK安装目录中bin文件夹的路径;
ClassPath:JDK安装目录中lib文件夹的路径。
(若无Path或classPath的变量,则自行建立;若Path或classPath有多个路径,则用";"隔开)
- Install IDE
- Install SDK → Creat New AVD (Android Virtual Device)
-
Install ADT:
Eclipse:"Help"→"Install" →"New"→"software"→"Add"
在"Name"中输入ADT名称,在"Location"中输入ADT网址"http://dl-ssl.google.com/android/eclipse"
-
将SDK与IDE关联起来
Eclipse:"Windows"→"Preference"→ "Android"→"Browse"→选择SDK的安装路径
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 ADT Plugin zip file (do not unpack it):
Package Size MD5 Checksum ADT-23.0.6.zip 103344298 bytes f64b7e50c84799f41c642218c35f1bbe - Start Eclipse, then select Help > Install New Software.
- Click Add, in the top-right corner.
- In the Add Repository dialog, click Archive.
- Select the downloaded ADT-23.0.6.zip file and click OK.
- Enter "ADT Plugin" for the name and click OK.
- In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
- In the next window, you'll see a list of the tools to be downloaded. Click Next.
- Read and accept the license agreements, then click Finish.
If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
- When the installation completes, restart Eclipse.
To update your plugin once you've installed using the zip file, you will have to follow these steps again instead of the default update instructions.
启动 Android SDK Manager ,打开主界面,依次选择「Tools」、「Options...」,弹出『Android SDK Manager - Settings』窗口;
在『Android SDK Manager - Settings』窗口中,在「HTTP Proxy Server」和「HTTP Proxy Port」输入框内填入mirrors.neusoft.edu.cn和80,并且选中「Force https://... sources to be fetched using http://... 」复选框。设置完成后单击「Close」按钮关闭『Android SDK Manager - Settings』窗口返回到主界面;
依次选择「Packages」、「Reload」。