Configuring the Android development environment using eclipse tutorial

1. Download the required tools:

(1) download the IDE development tool of Java? Eclipse

Download the latest Windows version of ecplise for Java EE from the official eclipse website

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

(2) Download Java Development Kit - Java se development kit (JDK) 6

Download JDK6 from sun's official website and select JDK6 update 12

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

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

(3) Download Android Development Kit - Android SDK

Download the Android development kit for windows from Google's official website

Download address: http://dl.google.com/android/android-sdk-windows-1.5_ r2.zip

2. After downloading the required tools, start the installation

(1) install ecplise: simply unzip the downloaded ecplise (eclipse-java-europa-winter-win32. Zip)

(2) install JDK6: run the downloaded jsk installation package (jdk-6u12-windows-i586-p.exe) and "next step" all the way (the version may be different)

(3) install the Android Development Kit (SDK): just unzip the downloaded SDK (android-sdk-windows-1.5_r2. Zip)

3. Let ecplise automatically install the Android development plug-in (ADT - plugin)

(1) start ecplise.exe in the ecplise directory after installation (decompression)

(2) click "help" - > "software updates" in the menu, and switch to the option page "available software" in the open window

(3) click "add site..." and add the following address: http://dl-ssl.google.com/android/eclipse/ Then click "OK"

(4) click "install..." to install ADT (Android development tools)

(5) at this time, ecplise will automatically download and install ADT from the added address. Wait a moment. After installation, ecplise will be prompted to restart, and click "OK" to restart ecplise

Installing ADT

4. Configure the Android SDK path

After restarting ecplise, click "window" - > "preference" to open the configuration window, select Android on the left, enter the path of Android SDK on the right (the directory extracted from the Android SDK downloaded in steps 1 - (3) just now), and click "OK" to complete the environment configuration

Configure Android SDK path

5. Test and develop an Android project

(1) click "file" - > "new" - > "other..." in the menu, select "Android" - > "Android project" in the open window, and click "next" to enter the next step

(2) choose a project name casually, such as "HelloWorld". Note that "com. Project name" needs to be entered in package name before clicking "finish" to continue

New Android project

(3) after the project is completed, click "run" - > "run" in the menu, select "Android Application" mode to run the program in the pop-up window, and you can call up the Android simulator to run the test program

Complete

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>