"Go" Windows Build eclipse+jdk+sdk Android

Source: Internet
Author: User

Original URL: http://blog.csdn.net/sunboy_2050/article/details/6336480

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 and select Help->install New software on the menu bar to see the following interface:

Click the Add button and the following screen appears

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

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

Note: If you cannot upgrade, go to the Android-sdk-windows directory and run the installation "SDK Setup.exe"


If you encounter the message "Failed to fetch URL ..." Error , then you need to change the HTTPS mode to HTTP, as follows:



If you encounter such an error, press the action below.
1) Select "Settings" on the left side of the "Android SDK and AVD Manager" window

2) Select "Force https://... "This option

(2) To upgrade the SDK version, select the menu Window->android SDK and AVD Manager appear the following interface

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) Create a new AvD (Android Vitural device) as above, go to Android SDK and AVD Manager, check vitural Devices when clicking 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. If this method does not work, try the following method (as I tried this method, I found no, explored the following methods to solve the problem)
Note: If a setcontentview (R.layout.main) error occurs, Google APIs may not be installed and the installation steps are as follows:

1. Menu windows--"Android SDK and AVD Manager

2, as shown:

3, after installation, windows--"Perferences, as shown:

(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.

Reprint statement: This article transferred from http://hi.baidu.com/sunboy_2050/blog/item/2ee138f82463cc08a9d311b1.html

Reference recommendation:

Installing the SDK (Android Developer)

Ubuntu Build Eclipse+jdk+sdk Android

Android Environment Setup and HelloWorld

Directory structure for Android projects

"Go" Windows Build eclipse+jdk+sdk Android

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.