Android Development Environment Setup (Eclipse Edition)

Source: Internet
Author: User

1. Download and install the JDK

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

(You will need to click on the Accept license above to download)

Setting environment variables

① new Java_home, the variable value is:

C:\Program files\java\jdk1.6.0_10

② new classpath, the variable value is:

.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

③ new path, the variable value is:

%java_home%\bin;

Note: Make the appropriate modifications according to your own installation conditions.

Set up Android folder on D Drive, dedicated to the IDE, SDK files for Android development

2. Download the Android SDK

Tips: In the town with Google-related downloads In many cases need a square wall

Unzip the downloaded SDK to d:/android

Platform-tools in the Peace platform related tools, such as Adb.exe, if the system installed Baidu mobile phone assistant, 360 mobile phone assistant, Pea pod and other management software, you need to be careful ADB server can not start the problem!

See also: http://www.cnblogs.com/longqi293/archive/2012/06/19/Android-Troubleshooting-ACK.html

Another: the ADB service closes and opens: adb.exe kill-server adb.exe start-server

If some tools are used frequently, you can set the path to the system's PATH environment variable.

The platforms directory is created by the AVD virtual machine, which is the system image file in the system-images.

Generally there is only the latest version of the Android API, is now android5.0, so you need to run the SDK Manager.exe download other versions of the API, after the download is complete, you will also need to download the corresponding version of the system Image

Operating system image files, otherwise unable to create an Android virtual machine, there should be no network connection, accept the license agreement and so on, the problem is easy to solve on-line search.

AVD Manager.exe is used to create virtual machines.

3 Download Install eclipse

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

Select the corresponding version to download, here choose Java EE version of the

Extract eclipse to D:/android/and use it without installation:

The first time you open Eclipse, the location of the JDK is automatically detected, and there is a problem if the JDK is not installed beforehand.

Then it's installing plugins in Eclipse to support Android development.

Download the plugin ADT

Download down about 90M or so, or relatively large.

Then Help->install new software in eclipse ... Click Add, give the plugin a few names, click Archive to select your own downloaded Adt-xxx.zip file

Then select all and Next, the system will parse the ZIP, followed by a full select + Accept license Agreement, the final installation, installation and parsing process is relatively long,

To be patient, the middle may pop up a dialog box saying security is unknown to the installation, click OK on the line.

The relevant tools are on eclipse.

You also need to set the location of the Android SDK in Window->preferences:

Here is the creation of the AVD, choose the appropriate API version, the new project to develop, (lazy) ^.^

Android Development Environment Setup (Eclipse Edition)

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.