Android开发环境配置要点
1 SDK_HOME = D:\sdx\jobInstall\android 2 JAVA_HOME = C:\Program Files\Java\jdk1.6.0_24 3 4 Path = %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%SDK_HOME%\tools;%SDK_HOME%\platform-tools 5 6 CLASSPATH = .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar // 最前面的 . 代表当前目录 7 8 9 java -version 10 11 android -h 12 13 14 adb connect 192.168.1.2 15 adb devices 16 17 18 19 eclipse -- help -- install new software 20 21 https://dl-ssl.google.com/android/eclipse/
(1) java JDK下载 : http://java.sun.com/javase/downloads/index.jsp 选择 Download JDK 只下载JDK,无需下载jre ( 安装完成,配置环境变量 )
(2) eclipse下载 : http://www.eclipse.org/downloads/ 选择 Eclipse Classic 4.2, or Eclipse IDE for Java Developers ( 无需安装,解压后,直接打开就行 )
(3) 下载Android SDK : http://developer.android.com/sdk/index.html : http://dl.google.com/android/installer_r20.0.3-windows.exe ( 安装完成,配置环境变量 )
(4) Eclipse配置android 开发插件 https://dl-ssl.google.com/android/eclipse/ (如果出错,请将https改成http)
(5) Eclipse配置android sdk 菜单window->preferences 选择android SDK目录
http://developer.android.com/sdk/installing/index.html