Android Development Environment eclipse + android sdk configuration notes

Source: Internet
Author: User

This development environment is: eclipse + android sdk. There are no special requirements on the sequence of steps described.

Steps:

1. Install eclipse

2. Configure jdk

3. Install the android sdk

4. Install ADT and associate it with eclipse and android

Detailed description:

1. Install eclipse

* Go to the official website to download eclipse (http://www.eclipse.org/downloads/), I am downloading Eclipse IDE for Java EE Developers.

* Normal decompression and installation. Remember the path.

2. Configure jdk

* Set the JAVA path

Right-click "my computer", select "properties", open the "System Properties" dialog box, click the "advanced" tab, and click "environment variables, in the displayed dialog box, click "new" under "system variables", enter JAVA_HOME in "variable name", and enter the decompress path for Java jdk installation in "variable value, click "OK"

* Set the CLASS path

Create a system variable, enter CLASSPATH in the variable name, and enter.; % JAVA_HOME % \ lib \ tools. jar in the variable value.

Note: The. (DOT) in the first.; indicates the current path, and the (semicolon) indicates the path separator. The following % JAVA_HOME % references the previously created JAVA installation path.

* Set the PATH

Generally, PATH variables are available. Select "edit" and add "% JAVA_HOME % \ bin" after "variable value". % JAVA_HOME % \ jre \ bin, note the semicolon

* In this way, JDK is installed. "Start-> Run", Enter cmd, and enter "java-version" in the command line prompt. the java version "1.6.0 _ 20" information should be displayed. JDK is successfully installed.

3. Install the android sdk

* I downloaded the sdk management tool http://www.android100.org/html/201207/12/1149.htmldirectly from my website. Select the SDK Setup tool.

* After unzipping, run the SDK Manager and check whether the SDK Manager is installed or upgraded.

* After the synchronization upgrade and installation are run, a prompt is displayed, indicating that the Synchronization Update is successful.

* Set the Android path

Repeat Step 1, create a new "system variable", enter Android_Home in the "variable name" (case-insensitive), and fill in the Android decompression package in the "variable value ".

* Set the PATH

"Edit" PATH variable, and add; % Android_Home % \ tools after "variable value". Note the semicolon before.

In this way, Android SDK 1.6 is installed. "Start-> Run", Enter cmd, and enter "android-help" in the command line prompt. The help information should be displayed. Android SDK 1.6 is successfully installed.

4. Install ADT and associate it with eclipse and android

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

* Run eclipse and click "Help-> Install New Software... ", Open the Install dialog box, and click Add... Click "Add Site", enter "ADT" in Name, and select the unzipped directory of "ADT Plugin 8.0.0" in "Location". There is a zip file in it and you can Add it, click OK to install it locally.

* Associate the Adnroid SDK with the "Windows-> Preferences" menu. In the displayed Preferences dialog box, click Android. In the Android Reference on the right, Click Browse… on the right of the SDK Location text box... Find the decompressed directory of the android sdk and click "OK"

Well, if you see that everything is running normally in this place, congratulations, your development environment configuration has been successful. If you are excited, here is a small example, try it (http://www.ibm.com/developerworks/cn/opensource/os-android-devel/index.html)

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.