Build an Android development environment tutorial under eclipse

Source: Internet
Author: User

We introduced to you yesterday the "Build Android SDK Environment on NetBeans", which was recently introduced in the " Android development Environment on MyEclipse 8.6 ", which has been welcomed by readers. But many friends think that NetBeans is not very user in China, MyEclipse is a charge product, no eclipse is good, many readers want us to introduce the Android development environment built under Eclipse, This article will demonstrate the build process of the Android development environment, without the need to configure environment variables. All software is written in the latest version of the article, I hope you like it.

A related download

(1) Java JDK Download:

Go to this page: http://java.sun.com/javase/downloads/index.jsp (or click to download directly) such as:

Select the Download jdk to download only the JDK, without downloading the JRE.

(2) Eclipse download

Go to this page: http://www.eclipse.org/downloads/(or click Download: bt download http download) such as:

We chose the first one (ie Eclipse IDE for Java EE developers)

(3) Download Android SDK

Description: Android SDK Two download version, one contains the specific version of the SDK, one is only the upgrade tool, not the specific version of the SDK, the latter is about 20 m, the previous one of more than 70 m.

Full Download (Android SDK 2.1 R01) Upgrade Download (This is recommended, this example is the use of this is not a specific version of this, the version you want to upgrade in Eclipse).

Two software Installation

(1) Install JDK 6u19 installation is complete, no need to configure environment variables

(2) Decompression Eclipse Eclipse without installation, after decompression, directly open the line

(3) Unzip the Android SDK this does not need to install, unzip for later use

(4) Eventually there are three folders, such as:

Three Eclipse configuration

1 Installing the Android development plugin

(1) Open Eclipse, on the menu bar, select

The following interface appears for Help->install New software:

Click the Add button and the following screen appears

Input URL: https://dl-ssl.google.com/android/eclipse/(If an error occurs, change HTTPS to HTTP)

Name: Android (can be customized here)

Click OK and the following screen will appear

Click the Next button and the following screen appears:

Click the Next button and the following screen appears:

Select I Accept the terms of the license agreements click Next and go to the Install plugin interface

After the installation is complete, the following interface appears

Click the Yes button to restart Eclipse

2 Configuring the Android SDK

(1) Click on the menu window->preferences to enter the following screen

Choose your Android SDK after the extracted directory, the wrong choice will be error, this is the upgrade tool, there is no version of the SDK

(2) Upgrade SDK version

Select Menu Window->android SDK and AVD manager appear as follows

Select the Update All button and the following interface appears

Select an item on the left, click on the installation, click Reject to not install, I only choose the SDK 2.1 and samples for API 7, I can arbitrarily customize, OK, select the Install button, enter the installation interface as follows:

The installation is completed as follows:

(3) New AvD (Android Vitural device)

As above, go to Android SDK and AVD Manager, check vitural Devices Click on the New button

After clicking the New button, go to the following screen:

The name can be easily taken, target select the SDK version you need, SD card size customization, click Create AVD, get the following results

Create AVD complete as shown above

3 New Android Project

(1) Select Menu File->new->other to enter the following interface:

Select New Android Project project, click Next button to enter the following screen

Name customization, application name customization, registration must contain more than one point, Min SDK version must enter an integer

(2) Click Next to display the following interface:

Note: If there is an error such as: Project ... is missing required source folder: ' Gen ', it will gen->android.test-> R.java This file is deleted, eclipse will regenerate the file for us without error.

(3) configuration operation

The right-click Project->run AS-a Run Configuration enters the following interface:

The interface, click the Browse button, select the item you want to run

Select target to switch to the following interface

This interface selects the AVD that is running and sets the box in front of the AVD to the selected state.

(4) test project run

Right-click the project name->run as->android application to start running the Android program as follows:

are entering

Test program Run Results

Four concluding remarks

At this point, the Android development environment has been built, please leave a message. Note here that I just downloaded the Android SDK R4 Upgrade tool, did not download the specific SDK, but through the Android SDK management tool in Eclipse upgrade, you can also directly download the specific SDK version, such as: Android SDK 2.1 r1 There is a download link for this, but my task is better with the upgrade tool.

"Editor's recommendation"

    1. Build an Android SDK environment on NetBeans
    2. An illustrated Android development environment on MyEclipse 8.6
    3. 8 Steps to teach you to open the Android Gate NDK Introductory Tutorial
    4. Android Development: Teach you how to animate gif animations

Reference http://mobile.51cto.com/android-227548_all.htm

Build an Android development environment tutorial under eclipse

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.