Build an Android environment and an Android Environment
I. configuration of the Java environment (taking JDK1.7 as an example)
Check the environment variable to check whether JAVA_HOME exists. If not, create
JAVA_HOME: jdk installation directory under the java installation directory
Path: bin directory under the jdk directory
CLASSPATH .;
Test whether the configuration is successful: For windows + R, Enter cmd and then java-version.
Ii. android environment construction:
1. Decompress eclipse, find the dropins folder, open it, and name the new folder adt.
2. decompress the adt and copy the features and pligins in it to the new folder adt in the previous step. Note that you cannot copy more.
3. An error occurs when you open eclipse. Click Cancel or close until the eclipse main interface appears.
4. Find the menu bar and click windows> preferences to find android. An error is prompted and the error is disabled.
5. There is an associated sdk on the right. Find the decompressed sdk and click apply. The android version is displayed and the configuration is successful.
3. android Virtual Machine Configuration:
1. Click the square in the upper right corner of eclipse to switch the eclipse panel to the java panel.
2. Find the android icon in the toolbar and select the second option to go To the VM control panel.
3. Select Device Defintions, find 4.0 "WVGA, and select create.
4. Set Target to android4.2.
5. Set CPU/ABI to ARM.
6. Configure Skin as the first item.
7. The configuration is successful. Click "start" to start the VM. Click "launch". wait several seconds until the VM is started successfully.
4. Create an android project:
1. Find file in the eclipse menu bar, click New, and select Android application project
2. Set the application name to FirstAndroid. All others are default. Press enter. Project created successfully.
5. Run the android project:
1. Click the created Project, right-click and choose Run As, and then select android application 2. Wait until the project runs successfully. The effect is displayed on the VM.
The android environment is "emotional" and requires patient configuration. It is only for beginners. The above is a stable version.