Environment configuration for Android Program Development

Source: Internet
Author: User

1. Download Android SDK

1) download Java JDK:

Web: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Select Download JDK to download only JDK

 

2) download eclipse

URL:Http://www.eclipse.org/downloads/

Select the first one (Eclipse IDE for Java EE developers)

 

 

 

3) download the android SDK

URL:Http://developer.android.com/sdk/

 

Note: The maximum version of the android SDK is 4.0. However, for compatibility purposes, lower version development is usually used to ensure better practicability unless you need to use new APIs for development.

 

2. Android DevelopmentProgramInstall

(1) install JDK. You do not need to configure environment variables after installation.

(2) unzip eclipse and open it directly.

(3) decompress the android SDK, which does not need to be installed. decompress the SDK for later use.

 

Iii. Eclipse Configuration

1. Android development plug-inInstall

 

(1) Open eclipse and choose help> install new software on the menu bar. The following interface is displayed:

 

 

(2 ),Click Add. The following page is displayed.

URL: http://dl-ssl.google.com/android/eclipse/

Name: Android (which can be customized here)

Click OK. The following page is displayed.

 

 

 

 

(3 ),Click Next. The following page is displayed:


(4 ),Click Next. The following page is displayed:

 

(5 ),Select I accept the terms of the license agreements and click Next To Go To The plug-in installation page.

 

(6 ),After the installation is complete, the following page appears:

 

(6 ),Click Yes to restart eclipse

 

 

2,Android SDKConfiguration

(1) Click WINDOW> preferences to go to the following page:

 


(2) Upgrade the SDK version. Choose WINDOW> Android SDK and AVD Manager. The following page is displayed:

 

Select the update all button. The following page is displayed:

 

(3) Select an item on the left, click accept to install, and click reject to disable installation. Here I only select SDK 2.1 and samples for API 7, which can be customized by myself, after confirming, select the Install button to go to the installation interface as follows:

 

(4) the installation is completed as follows:

 

 

3. Create an AVD (Android vitural device)

 

(1 ),Click AVD manager to go to the following page:

 

 

 

(2) Click the new button to go to the following interface:

 

The Virtual Machine name (name) can be retrieved at will. Target selects the SDK version you need, the SD card size is customized, and the screen resolution is defined according to the size of the machine you developed,

 

Click Create AVD. the following result is displayed,AVDCreated

 

 



4. Create an android Project

(1) Select File> New> project to go to the following page:

 

 

 

 

(2 ),ClickProjectButton to go to the following page

choose to create an android project, click the next button

(3 ),Enter the project name newapp


(4) select the androd version to use , click the next button

 

 

(5) Enter the package name and startup page class nameClick Finish.

 

(6) create a new project newapp

 

 

 

5. Test the newly created androind application.

 

(1) execute the newapp program. The AVD selection form is displayed. Select the newly created newpad (Virtual Machine) and double-click it.

As follows:

 

(2) It is slow to start a virtual opportunity for the first time. You need to wait patiently...

 

OK !!! Successful.

 

Next, we will explain the problems that need to be paid attention to in various applications in androin development...

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.