Installation and configuration of the Jdk+eclipse+android_sdk+adt of the Android environment

Source: Internet
Author: User
Tags port number java se

The URL used is as follows:

Jdk:http://java.sun.com/javase/downloads/index.jsp (Java SE Development Kit 6u20)

eclipse:http://www.eclipse.org/downloads/(Eclipse Classic 3.6.0)

Android sdk:http://androidappdocs.appspot.com/sdk/index.html (android-sdk_r06-windows)

Adt:http://androidappdocs.appspot.com/sdk/eclipse-adt.html (ADT-0.9.7)

1. Download jdk (Java SE Development Kit 6u20).

2, install to the default path C:Program Filesjava, hard disk space is not tense, all components are installed.

3. Configure System Environment variables:

Open: My Computer-Control Panel-System Properties-advanced-Environment variables, dialog box in the lower half of the system variable, add the following two variables:

Variable name: java_home

Variable Value: C:Program filesjavajdk1.6.0_20

Variable name: CLASSPATH

Variable value:.; %java_home%lib;%java_home%libtools.jar;%java_home%libdt.jar

Then, modify the following variables:

Variable name: Path

Variable value: "%java_home%bin;" Add before the value of the original variable

At this point, in the MS-DOS window to execute the command java-version, see the following results, the JDK installation, configuration complete.


4. Download eclipse (Eclipse Classic 3.6.0).

5, decompression to the directory (can be specified according to their own custom) C:Program Filesjava can be, without installation.

6, run the program C:Program FilesJavaeclipseeclipse.exe, pop-up The following dialog box required to configure the working directory:

Specify the working directory (which you can specify according to your own custom) as follows:

7, download the Android SDK Quick start version (Android-sdk_r06-windows).

8, Decompression directory (can be specified according to their own custom) C:Program Filesjava, ready to install.

9, run the program C:Program FILESJAVAANDROID-SDK-WINDOWSSDK Setup.exe

So, in the following figure shown on the left to open the Settings tab, and configure Proxy server, port, such as the figure, while checking "Force https://...", port number if there is conflict, can be more practical need to change

Back to Available Packages tab:

Check the display Updates only the previous checkbox, expand the triangle before the site, you have to update the package list, and select 5 of these packages:

Click the Install selected button,

Select Accept All, then click the Intall button to start downloading, installing,

At this point, the Android SDK 2.2/1.5 is installed, with the required USB driver installed in the Windows environment, the corresponding SDK version 2.2 document documents, sample samples, available in the directory C:Program Filesjavaandroid-sdk-windows to see the relevant content.


10. Configure System Environment variables:

Open: My Computer-Control Panel-System Properties-advanced-Environment variables, dialog box in the lower half of the system variable, modify the following variables:

Variable name: Path

Variable value: "C:Program filesjavaandroid-sdk-windowstools;" Add before the value of the original variable

Where C:Program Filesjavaandroid-sdk-windowstools is the tools directory for the Android SDK, then the MS-DOS window is able to execute commands android–h as follows, which indicates that the Android SDK installation is complete.


11, install Eclipse for Android Development plug-in ADT (Android Development Tools) "If the network connection is not clear, see the end of this article":

First Run Eclipse.exe, select menu Help-install New Software ...

Open the following window:

Click Add...,name to enter (according to their own custom) Android adt,location to fill out the following URL: https://dl-ssl.google.com/android/eclipse/as follows:

OK, Pending ... The following figure:

Click Select All, then next ...

Continue next ...

Choose I accept ... and finish

And ...

Ok...

Restart now reboot

12. Configure the Android SDK location in Eclipse: Run Eclipse.exe First, select Menu Windows-preferen ...

Open dialog box, select Android on the left to remind the location of the Android SDK ...

Enter the Android SDK installation location as follows:

When you apply, you will detect that you have installed the SDK version 1.5, 2.2,ok.

13. Configure the Android emulator AVD in Eclipse: Select Menu Eclipse Menu windows-android SDK and AVD Manager ...

In the Open dialog box Click New ..., the new window to fill in the emulator name, select the Simulated SDK version, specify the simulator SD card capacity, display type, create can, the following diagram:

Continue to create the emulator android-sdk-2-2 for SDK 2.2, and finally get the AVD list as follows:

Here, you can use Eclipse for Java program design, Android application development.

The C:Program Filesjava directory has four subdirectories:

(1) Android-sdk-windows:android SDK installation directory

(2) Eclipse:eclipse IDE free of installation directory

(3) JDK1.6.0_20:JDK installation directory

(4) JRE6:JRE installation directory

Eclipse's working directory is set to: D:workspace

The Android AVD is configured to: C:documents and SETTINGSADMINISTRATOR.ANDROIDAVD

Android AVD devices can also be created using command-line methods, and you can see the relevant information.

When the network is not smooth, the preceding steps 9, step 11 can be used to download the installation package first, and then to install locally. Where the Android SDK can be copied directly from other installed computers (C:Program filesjavaandroid-sdk-windows entire directory). Then run Setup.exe to configure it, copy adt-0.9.7.zip files from elsewhere to this computer, and then set up a local Web site pointing to the file to install

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.