Android Test Development Environment Building

Source: Internet
Author: User

This document is for 0 of people who have not touched Android, and before you start getting familiar with Android, you need a learning environment to support it, and here's a brief introduction to the Android environment. (Of course, you can also Baidu, Google, a lot of similar documents)

Environment Construction:

    1. JDK Installation

      If you do not have the JDK, you can go here to download, according to the computer system environment to download the corresponding package, such as my Window System 64-bit, then download, the installation package download down, the next task is to install the prompt step by step, until the installation is complete.

After the installation is complete, you need to set the environment variable (new, system variable, environment variable, properties, such as My Computer)

Add the following environment variables:

Variable name: Java_home variable Value: C:\jdk1.6.0_10 (the JDK directory you installed)

Variable name: Classpath variable value:.; %java_home%\lib;%java_home%\lib\tools.jar

Variable name: Path variable Value:%java_home%\bin;%java_home%\jre\bin

Note: (If there is content in the value of the variable, use; separate)

Tested for a successful Java JDK installation?

Open the cmd window, enter java-version to view the JDK version information, similar to the following screen shows that the installation was successful.

2.Eclipse Installation

3.Android SDK Installation

4.ADT Installation

The above three tools installation does not introduce the installation alone, because there is a certain matching dependency between the three tools versions, in order to reduce the compatibility between the tools, Google Android website provides unified Android development tools integrated compression package, click to download. The page is as follows:

Download complete and unzip the package to any directory as follows: (e.g. D:\Android)

Configure the Android SDK Runtime environment:

Create a new Path variable name in the user variable, the value of which is the absolute path of the Android SDK (e.g., my path D:\Android\sdk\tools)

When you are sure, restart your computer. After restarting the computer, enter the CMD command window, enter android-h, and check that the SDK is installed successfully. (Sometimes it can be verified without restarting)

Installing the Android system version

Click ' SDK Manager.exe ', load the preinstalled Android version, then tick the Android version you want to install (e.g. android2.3.3 version [Sdkplatform Google APIs], click Install 2 packages, select " Accept ", click on" Install "installation, and then enter the installation status, the installation process may be longer, you need to wait patiently.

Installing ADT

Under normal circumstances, download the official Google Android Compression pack, with the relevant ADT plug-ins configured in the plugin.

But we can start the Eclipse tool to check if ADT is actually installed.

Step: Launch the Eclipse--> window and click on ' Help ' and select ' Install new software ... '-->available software Sites, open the Installed plugin window and check Android Developer Tools Update Site Item

Location for http://dl-ssl.google.com/android/eclipse/exists, presence represents already installed ADT;

If there is no manual add, enter the address as above,

5. Create an AVD

Step: Launch Eclipse Tools--Window click ' Window '--select ' Android Virtual Device manager ', go to the AVD Management page, then click ' Create, popup ' Create New Android Virtual Device ' window,

6.Eclipse combined with Android SDK

Open Eclipse, window, Preferences, on the left side of the pop-up menu, select Android Properties, select the previously unzipped Android SDK directory in the SDK location directory, click the Apply button , and then click OK.

Note: LDK location: For the extracted "SDK" directory,

7. Test if Eclipse is successful with Android SDK, Android AVD

Start Eclipse,file, New, Android Application project item, input application name (for example: HelloWorld)->next, Next-& Gt Until finish.

When you are finished, the Project Explorer window has a directory of HelloWorld projects files;

Then, in the left Package Explorer , right-click on the HelloWorld, Run as->android application:

or right-click the Run as->run Configuration on the HelloWorld, for example,

The first boot may take a few minutes, please wait patiently:

Hello world! Although no code has been written yet, the classic Hello World interface appears. See this interface to prove that the Android test development environment configuration is successful!

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.