Android Development Environment Configuration Graphics tutorial (Jdk+eclipse+android SDK)

Source: Internet
Author: User

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: 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) 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

Click Next to display the following screen:



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

Android Development Environment Configuration Graphics tutorial (Jdk+eclipse+android SDK)

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.