First, the Android development environment needs to download three tools:
1, JDK download URL: http://java.sun.com/javase/downloads/index.jsp
2, Eclipse download URL: http://www.eclipse.org/downloads/
3, Android SDK download URL: http://developer.android.com
Second, the installation
Start by installing the JDK, then install the SDK, and extract the Eclipse;
Install the JDK, After the JDK installation is complete, configure the environment variables as follows:
1, for example, we choose the installation directory for C:\Program files\java\jdk1.7.0_02;
2. After the installation is complete, right click on "My Computer", click "Properties";
3. Select the "Advanced" tab and click "Environment variable".
4. In "System Variables", set 3 properties,Java_home, PATH, CLASSPATH ( regardless of case), if already exist click "Edit", does not exist then click "New";
5.java_home indicates the JDK installation path, which is the path you chose when you just installed C:\Program files\java\jdk1.7.0_02;
Path enables the system to identify Java commands under any path, set to:
%java_home%\bin;%java_home%\jre\bin
Classpath is the Java load class (class or Lib) path, and only classes in Classpath can be recognized by Java commands , set to: .; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar (to be added. Represents the current path)
%java_home% is referring to the Java_home specified earlier
To install the SDK:
Extract "Android-sdk_r04-windows.zip" to D:\Android\android-sdk-windows\, D:\Android\android-sdk-windows\tools the SDK path and D:\Android\android-sdk-windows\Platform-tools are added to the environment variable path. When configured, enter "Android-help" on the command line to see the Android Help information that explains the SDK installation success.
Extract Eclipse:
Set up Eclipse, install Android development tools-ADT
Open Eclipse Menu help->install new software
Select Add
Input Name:adt
location:https://dl-ssl.google.com/android/eclipse/
Press OK
Note: Because it takes a long time to download through Eclipse,
so I use another way to install the ADT plug-in: first download the ADT, and then use the above method to install, remember this process to unplug the network cable .
The installation process is as follows:
All tick, install. Press Next to accept the agreement, which will be installed automatically.
After the above steps and success, your eclipse has installed the Android development plugin ADT. The next step is to configure the Android SDK in Eclipse.
Note: If the ADT installation fails, it may be an Eclipse version issue and it is best to download the Eclipse IDE for Java EE developers, this version of Eclipse, on the website.
Configuring the Android SDK in Eclipse
1 Click menu Window->preferences, enter the following interface:
In the SDK location, fill in the installation path for your Android SDK just now.
Once all of the above steps are complete, you can create a new AVD (Android virtual device). As shown in the following figure, select Virtual Devicesc to appear:
Click New to appear:
Name (names of virtual machines, arbitrary);
Target (development of the version used);
SD cards (analog memory card size, arbitrary);
Skin (This should be the screen size parameter)
These several parameters fill out, click Create AVD, configuration task end.
4) as shown in the picture, I've created a 2.2-version simulator on my Computer, select this simulator, click the Start button on the right, if the configuration of all normal, then we will be expected to wait for the simulator interface (the simulator to start a slow, estimated less also to 2-5 minutes, do not worry):
Configuration work ended.