Android development environment Eclipse + Android SDK configuration note

Source: Internet
Author: User

The development environment is: Eclipse + Android SDK, step description order, no special requirements, see personal hobbies

Step Description:

1. Install Eclipse

2. Configuring the JDK

3. Install the Android SDK

4. Installing ADT, associating Eclipse and Android

Detailed Description:

1. Install Eclipse

* to the official web download Eclipse (http://www.eclipse.org/downloads/), I am the download Eclipse IDE for Java EE developers.

* Normal decompression installation, note that the path is OK

2. Configuring the JDK

* Set Java Path

Right-click on My Computer, select Properties, open the System Properties dialog box, click the Advanced tab, click the Environment Variables button, under System Variables in the dialog box that opens, click New, and then fill in the variable name in the dialog box Java_home, in the variable value Fill in the decompression path for the Java JDK installation, click OK

* Set class Path

Then "new" a system variable, in the "Variable name" fill in the Classpath, in the "Variable value" filled.; %java_home%\lib;%java_home%\lib\tools.jar.

Description: The beginning of the.; In the. (point) indicates the current path,;(semicolon) is a path delimiter. The next%java_home% refers to the JAVA installation path that you just created earlier

* Set PATH Path

The path variable is generally available, so check the point "edit" and then add it after "variable value";%java_home%\bin;%java_home%\jre\bin, notice the preceding semicolon

* This way, the JDK is ready to install. Run from start, enter CMD, and then at the command line prompt enter: java-version, you should be able to see the Java version "1.6.0_20″ information; JDK Installation succeeded

3. Install the Android SDK

* I am a direct download of the SDK Management tool http://www.android100.org/html/201207/12/1149.html, select the SDK Setup tool---The old version of the SDK automatic upgrade tool

* After decompression, run SDK Manager directly, will automatically detect whether installed, upgrade, etc.

* After running the synchronization upgrade and installation, you will be prompted to synchronize the update successfully

* Set Android Path

Repeat the first step (1), create a "system variable", fill in the "Variable name" android_home (case is not a problem), in the "Variable value" to fill the Android unpacking the road

* Set PATH Path

"Edit" the path variable, after "variable value", add;%android_home%\tools, note the preceding semicolon.

That way, Android SDK 1.6 is ready to install. Run from start, enter CMD, and then at the command line prompt, enter: Android-help, you should be able to see the help information; Android SDK 1.6 installed successfully

4. Installing ADT, associating Eclipse and Android

* Download ADT Plugin 8.0.0 http://www.android100.org/html/201207/12/1149.html on the website

* Run Eclipse, click on the Menu "Help, Install New software ...", open the Install dialog, click Add ... button, add site, fill ADT in name, select the extracted ADT Plugin 8.0 in location. 0-Way Hard directory, there is a zip file, add in it, click OK can be installed locally

* Associated adnroid SDK: Menu "Windows->preferences", open Preferences dialog, click Android, on the right side of Android reference, point SDK Browse to the right of the location text box ... button to find the unzip directory of the Android SDK, "OK"

Well, if you see this place, everything is running normally, then congratulations, your development environment is configured successfully, if you can not withstand the excitement of the mood, here is a small example, go try it (http://www.ibm.com/developerworks/cn/ opensource/os-android-devel/index.html)

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.