Using Eclipse to configure the Android development environment Tutorial _android

Source: Internet
Author: User
Tags zip java se

  1. Download the tools that need to be used:

(1) Download Java IDE development tools? Eclipse

Download the latest Windows version of Ecplise for Java EE to the Eclipse official website

Download page address: http://www.eclipse.org/downloads/

Download Ecplise

(2) Download Java Development Kit-java SE Development Kit (JDK) JDK 6

Download JDK6 to the Sun official website and choose JDK 6 Update 12

Download page address: http://java.sun.com/javase/downloads/index.jsp

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


Download JDK6

(3) Download Android Development Kit-android SDK

To Google's official web site to download the Android development package for Windows

Download Address: Http://dl.google.com/android/android-sdk-windows-1.5_r2.zip

  2. After downloading the required tools, start the installation

(1) Installation ecplise: Download back ecplise (eclipse-java-europa-winter-win32.zip) directly decompression can be

(2) Install JDK6: Run download back Jsk installation package (Jdk-6u12-windows-i586-p.exe) all the way "next" can (version may be different)

(3) Install the Android Development Kit (SDK): Download the SDK package (Android-sdk-windows-1.5_r2.zip) directly decompression

3. Let ecplise automatically install the Android Development plug-in (Adt-plugin)

(1) Start the installation (decompression) after the Ecplise directory of Ecplise.exe

(2) Click the Menu "Help"-> "Software Updates", Switch to the option page in the open window "Availabe Software"

(3) Click "Add Site ...", add the following address: http://dl-ssl.google.com/android/eclipse/then click "OK"

(4) Just add the address, click "Install ..." for ADT (Android Development Tools) installation work.

(5) Ecplise at this time will be from the added address automatically download and install ADT, a little wait a while, after installation, prompted to restart the ecplise, click "OK" restart Ecplise

  

  Install ADT

  4. Configure the Andiord SDK path

After restarting the ecplise, click on the Menu "window"-> "preference", open the Configuration window, select Android on the left, and enter the path to the Android SDK on the right (step 1-(3) to download the Android SDK to extract the directory), click "OK", this environment configuration completed.

  

Configure the Android SDK path

5. Test development of an Android project

(1) Click the menu "File"-> "New"-> "Other ...", select "Android"-> "Android Project" in the open window, click "Next" to enter the next step

(2) casually start a project name, such as "HelloWorld", note that package name needs to enter "COM. Project name" to click "Finish" to continue.

  

New Android Project

(3) After the construction of the project, click the menu "Run"-> "Run", in the pop-up window to choose "Android Application" mode to run the program, you can adjust the Android simulator run test program.

  

Complete

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.