Build an Android environment and an Android Environment

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.