Environment Construction
JDK Installation
If you do not have a JDK, you can download it here. The next step is to install the SDK step by step. To set environment variables, follow these steps:
Choose my computer> Properties> advanced> environment variables> system variables to add the following environment variables:
JAVA_HOME: D: \ Program Files \ Java \ jdk1.6.0 _ 18 your JDK installation directory)
CLASSPATH value:.; % JAVA_HOME % \ lib \ tools. jar; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ bin;
Path: Start appending % JAVA_HOME % \ bin;
NOTE: Setting environment variables in the previous four steps is not necessary for building an Android development environment. You can skip this step.
After the installation is complete, check whether the JDK is successfully installed. Open the cmd window and enter java-version to view the JDK version. The following figure shows that the installation is successful:
Figure 1. Verify that JDK is successfully installed
Eclipse Installation
If you still have Eclipse, you can download win 32bit from here, as shown in Eclipse IDE for Java javass92m:
Figure 2. Eclipse download
Decompress the package and use it.
Android SDK Installation
Download android-sdk_r05-windows.zip from Android codecs and decompress it to any path.
Run SDK Setup.exe and click Available Packages. If no package is Available, click Settings, select "Force https: //..." In Misc, and then click Available
Packages.
Select the SDK you want to Install and its documentation or other packages. Click Installation Selected, Accept All, and Install Accepted to download and Install the Selected packages.
In the user variable, create a PATH with the absolute PATH of tools in Android SDK. The local PATH is D: \ AndroidDevelop \ android-sdk-windows \ tools ).
Figure 2. Set the environment variable "OK" of the Android SDK and restart the computer. After restarting the computer, enter the cmd command window and check whether the SDK is successfully installed.
RunAndroid-hIf the following output is displayed, the installation is successful:
Figure 3. Verify that the Android SDK is successfully installed