Build an environment for Android development (1)

Source: Internet
Author: User

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


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.