1. 安装 JDK
http://www.oracle.com/technetwork/java/javase/downloads/index.html
http://www.azofreeware.com/2013/11/java-development-kit-jdk-7-update-45.html
之后要设置系统参数
(Control Panel - System - Advanced system settings - Environment Variables - System variables)
JAVA_HOME : C:\Program Files\Java\jdk1.8.0_92
CLASSPATH : %JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
PATH: 在 PATH 值中前面或后面加入 .;%JAVA_HOME%\bin;
2. SDK tools package
http://developer.android.com/sdk/index.html
http://dl.google.com/android/android-sdk_r24.4.1-windows.zip
将 Android SDK 解压于 C:\android-sdk
打开 C:\android-sdk\SDK Manager.exe,
选择安装至少一个版本的 Android 如 6.0 (API 23)
3. 下载旧版 Eclipse 4.4 (Luna) - Eclipse IDE for Java Developers
因为下面要安装的插件只支持到 Eclipse 4.4 (Luna)
eclipse-java-luna-SR2-win32-x86_64.zip
https://www.eclipse.org/downloads/packages/release/Luna/SR2
解压, 打开 eclipse/eclipse.exe 就能用了
4. Android Developer Tools (ADT 23.0.7.2120684)
Help - Install New Software.. - Add.. - Add Repository
Name : Google Plugin for Eclipse 4.4
Location : https://dl.google.com/eclipse/plugin/4.4
或
Name : ADT
Location : http://dl-ssl.google.com/android/eclipse/
选安装 Developer Tools
[1] Android DDMS
[2] Android Development Tools
[3] Android Hierarchy Viewer
[4] Android Native Development Tools
[5] Android Traceview
[6] Tracer for OpenGL ES
或
Help - Install New Software.. - Add.. - Archive
http://dl.google.com/android/ADT-23.0.7.zip
5. 设置
Window - Preferences - Android - SDK Location: C:\android-sdk
6.重启 Eclipse
没有评论:
发表评论