How to configure the Eclipse IDE and Android SDK development environment for Windows

Source: Internet
Author: User

Update: This article has a long history. Please refer to the latest Android 4.0 Development Environment installation and configuration tutorial.

==========================================

For beginners who want to learn about Android development, the first step is to configure the development environment. It is best to teach them step by step. However, when I configured the environment, I found some articles on the Internet for a long time, which caused some changes or incomplete content. The following is an example of how to build an android development environment for Windows XP SP2. This is also a beginner. skip this step. If any errors occur, correct them.

First, we need to download the following three files
  1. JDK download click here to download (Sun), the latest version of information: jdk-6u16-windows-i586.
  2. To download the android SDK, click here to download the latest Android SDK from the Google address. By the way, the website of Android developer is inaccessible and cannot be opened due to firewall blocking. You can only see some content through this address: https://sites.google.com/a/android.com/opensource/. Of course, you can also go to gfw. The latest version is 2.1 R1. The android SDK contains all the tools and APIs for developing applications or debugging, as well as the android simulator. It can test all applications without the need for real hardware devices. Of course, some applications require hardware support. For example, you need to use camera, Bluetooth, and other functions.
  3. Eclipse IDE download we suppose to use Eclipse IDE to develop Android applications, file =/technology/EPP/downloads/release/Galileo/Sr2/eclipse-java-galileo-SR2-win32.zip "> click here to download (Eclipse IDE ). After installing Eclipse IDE, you also need to install a component Android development tools (ADT) to add eclipse support for Android projects. ADT is a required component for Android development. This file does not need to be downloaded. It is directly updated through eclipse.
Install and configure the development environment

Assume that the D disk is used as the root directory of all the installations, and the rough calculation is that all the installations occupy approximately 1 GB of space. Therefore, ensure that the D disk has 1 GB of space.

  1. Install JDK to D: \ jdk6. Android uses Java to compile code generation. Note: You must install JDK before you can use eclipse normally.
  2. Android SDK 1.6 does not need to be installed. decompress the downloaded Android SDK 1.6 package to D: android_sdk1.6_r1. Then add the Directory D: \ android_sdk_1.6_r1 \ tools to the system PATH variable. The method is as follows:
    • Right-click "my computer" and choose "properties", select "advanced", and click "environment variable" at the bottom.
    • In the displayed dialog box, double-click the PATH variable under "system variables" and add "D: android_sdk1.6_r1 \ tools" to "variable value ". Remember that there should be a semicolon (;) separated from the preceding path.
  3. Decompress caffe to D: \ eclipse. To use eclipse as the android development environment, you also need to update the ADT (Android development tools) plug-in. The installation method is as follows:
    • Double-click eclipse.exe and choose help> Software Updates> available software> Add site.
    • In the location dialog box, enter the address https: // DL-ssl.google.com/android/eclipse/. then, click okback to the available software interface.
    • In the list box, you can see the entered address, select the ADT, and click the Install button. The ADT plug-in License Agreement will appear below. Click Next to continue. Until the installation is complete.

  4. Restart eclipse to set the parameter so that it points to the root directory of the Development Kit. The procedure is as follows:
    • Choose WINDOW> preferences. In the dialog box that appears, select android in the left-side pane. In the SDK location on the right-side pane, select the root directory of the android SDK. Click OK.

  5. Update ADT to the latest version.
    • Select help> software updates in eclipse.
    • In the installed software dialog box, select Android development tools and click "Update" on the right until the update is complete.

In this way, we have completed the development environment required for Android development in windows. Later we will talk about how to write our first program "Hello World ". Is the above content useful to you? Or if something is wrong, please leave a message to discuss it!

How to configure the android Development Environment (Eclipse IDE + JDK + Android SDK) in the MAC system of Apple

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.