Android Development Environment Configuration tutorial

Source: Internet
Author: User

Recently started to do the development of Android, Android development environment for the first time configured, or quite complex, the following is my entire configuration process.

First step: Download and install the JDK

Download Address: http://www.oracle.com/technetwork/java/javase/downloads/index.html

If some friends are in the network can not open the link to the official website, go to the Chinese army and so may also download to, here I chose the SE version on the line.

JDK installation process because it's easy, here's the thing to repeat.

Step Two: Java environment variable settings

Java environment variable Settings online More, here also talk about.

1, WIN XP under the desktop on my Computer right key properties, find the Advanced environment variable, open.

WIN7 and Vista below the right key properties on my computer, point to the advanced system settings, and then open the environment variable in the Out dialog box.

Here are the steps.

2, find your JDK installation directory, for example, my is: D:/program files/java/jdk1.6.0_23

Add variable java_home to the system variable, and the variable value is the JDK installation directory, as mine is D:/program files/java/jdk1.6.0_23

3. Set path and CLASSPATH system variables in the same way

Path has generally existed, edited it, at the top of the variable value (note, is the front) joins the%java_home%/bin;%java_home%/jre/bin;

The value of classpath is.; %java_home%/lib;%java_home%/lib/tools.jar Note that there is an English in front.

After the configuration is successful, you can run cmd input java and javac to see if the installation is successful and many help commands are available after success.

Step three: Download and install eclipse

Download Address: http://www.eclipse.org/downloads/

Choose the Classic version here.

Eclipse does not need to be installed, and decompression can be used directly.

Fourth step: Download and install the Android SDK

Download Address: http://code.google.com/android/download.html

Or

Http://www.android123.com.cn/android_kit.html

After downloading, extract to the appropriate place, do not need to install, then to configure environment variables.

For example, my decompression address is: d:/android sdk/android-sdk-windows-1.5_r3/

In the system variable in the environment variable (open method with JDK environment variable setting), edit path, add at the end, D:/android sdk/android-sdk-windows-1.5_r3/tools.

Step Fifth: Update Eclipse installation ADT (Android development plugin)

1, start Eclipse, choose Help > Install New Software
2, after the pop-up dialog box, select Add ...
3, in the pop-up window, in the "Name" column to fill in a name, such as Android, in the "Locatoin" fill in the Update plug-in url:https://dl-ssl.google.com/android/eclipse/(if prompted error, To change HTTPS to HTTP, use HTTPS for security purposes, for the difference between HTTP and HTTPS, I can access another blog post: http://blog.csdn.net/AngusSL/archive/2010/05/04/ 5557738.aspx), click "OK".
4, back to the "Available Software" view, in the Workwith drop-down box to select the name you just started, you can now see in the list added "Development Tools", select it can automatically select its Android DDMS and Android Development Tools, click "Next".
5, pop-up window, click "Next".
6, choose to accept the agreement, click "Finish".
7, restart Eclipse.

8. Now, modify the eclipse attributes to the directory of the Android SDK, as follows: Select Preferences under the Window menu in Eclipse, choose Android on the left, click Browse to locate the SDK installation directory, Directory for the previous fourth step of the decompression address, click "Apply", and then click "OK".

Step Sixth: Update SDK add AVD

1, open Windows-->android SDK and AVD Manager, select installed packages Select Update All Updates SDK.

Add AVD:

There are many ways to add under the CMD command on the Web, which is a bit cumbersome, and here's a way to add directly to eclipse.

1. Click Android directly on Eclipse's toolbar or open Windows-->android SDK and AVD Manager

Select the virtual devices on the left and select New ... Open the following dialog box:

Name your AVD, such as android_2.3.1, and then select the appropriate version in target below.

Skin for your simulator to display the appearance and size, the look can be downloaded, the size can be adjusted, according to their own screen and preferences to set, and then click Create AVD.

At this point, all the configuration work is over, can be developed, good Luck eeveryone!

Note: The solution to the AVD's path contains Chinese and cannot find AVD: Create a new variable in the environment variable--> system variable named Android_sdk_home (note that you must capitalize ...). ), Value: Android SDK installation directory, such as mine for D:/android SDK/ANDROID-SDK-WINDOWS-1.5_R3

Also, remind you to try not to use Chinese when naming some key folders.

Related Article

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.