There are two ways to build an environment:
The first type is as follows:
1. Configure Java environment variables.
My computer-right-click Properties-advanced-environment variables-System Variables
Java_home D: \ Java \ jdk1.6.0 _ 05
Classpath % java_home % \ Lib \ DT. jar; % java_home % \ Lib \ tools. Jar
Path.; % java_home % \ bin;
2. Download the tool from the android official website.
Log on to the http://developer.android.com/develop/index.html and click Download on the left to download, see:
Figure 1
Figure 2
Figure 3
Decompress and open an eclipse folder. This is an android development tool that has integrated the android SDK.
3. Create an android Virtual Machine (AVD) in the eclipse Android development tool)
4. After the VM is created, select the Virtual Machine (AVD) and click Start. Start the VM and run launch directly.
OK, success! Develop Android programs as you like!
The second method is as follows: (download the ADT package and SDK package. Eclipse development tools .)
1. Configure the Java environment variable.
2. Configure ADT in eclipse.
1. In eclipse, select help> install new software. In the available software dialog box, click Add ....
2. In the Name field of the add site dialog box, enter the name of the remote site (for example, "android plugin "). In the location field, enter the following url: https://dl-ssl.google.com/android/eclipse/#:. if you encounter a problem when accessing the plug-in, you can change the HTTPS in the URL to HTTP (it is safer to Use https ). Click OK.
3. Return to the available software interface and you can see the Developer Tools Options in the list. Select the check box next to Developer Tools to select both Android ddms and Android development tools. Click Next.
4. In the last install details dialog box, features such as Android ddms and Android development tools are listed. Click Next to read and accept the license agreement, install all dependent components, and then click Finish.
5. Restart eclipse.
3. Configure the SDK in eclipse.
Windows -----> preferences menu item, Click Browse, and select the SDK path.
4 OK. The configuration is complete. Start eclipse to develop the android program!