Configure the android development environment in eclipse

Source: Internet
Author: User

I. Prerequisites for Environment setup:

(1) Jak 1.6

(2) Eclipse IDE

(3) Android SDK

 

Prepare these three items to start building the environment.

 

Ii. configuration steps:

 

(1) Some Basic Environment Variable configurations will not be mentioned. You need to configure an android environment variable,

 

Android_sdk_home = C:/Android SDK; (here is the decompressed SDK path)

 

 

Add % android_sdk_home %/tools in the PATH variable;

 

(2) Open eclipse and click Help --> install new software, as shown in:

 

Figure (1)

 

(3) the install dialog box is displayed. Click Add, as shown in:

Figure (2)

 

 

In the Add site dialog box, enter:

Name: Android

Location:Https://dl-ssl.google.com/android/eclipse/

 

Click "OK", select all resource lists, and click "Next" until the download starts. Several dialog boxes will pop up during the download process. Click "yes" (if the network speed is normal, it may take quite a long time to download, so please wait)

 

(4) The following icons will appear in the eclipse toolbar:

Figure (3)

 

(5) set the android SDK and click window --> preferences --> Android, as shown in:

 

Figure (4)

 

 

Set the SDK location to the path of the decompressed SDK

 

(6) for Android SDK and AVD manager, click the rightmost robot button in figure (3) to bring up the Manager dialog box, as shown in:

 

Figure (5)

 

 

Click available packages in figure (5). Related Resources are listed in Android repository, because I have downloaded and installed android2.2 and Android 2.3, therefore, these two versions will not appear in the androidrepository list, but will not appear in the installed
Appears under packages, as shown in:

 

Figure (6)

 

The entire download and installation process takes a long time and you need to wait patiently.

 

(7) after download and installation, you can click virtual devices in the Manager dialog box to create an AVD, as shown in:

Figure (7)

 

 

Click the new button in figure (7) to bring up the createnew AVD dialog box, as shown in:

 

Figure (8)

 

Enter the relevant content and click Create AVD to create it.

 

3. Create an android Project

 

(1) Create an android project, as shown in:

 

Figure (9)

 

 

Click Next To go to the page:

 

 

 

 

 

 

Figure (10)

 

 

The value of Min SDK version in figure (10) is the same as the value of build target in the selected one. Click Finish to create the project.

 

(2) write the first hello Android program and enter the following code in the hello. Java file:

 

Figure (11)

 

(3) run the android program. Click Android Application to run it, as shown in:

Figure (12)

 

(4) Wait for a while before loading. After loading, see:

Figure (13)


 

Iv. Summary:

 

It is relatively simple to set up the environment. It may take a little longer to download and install the environment during the entire process (if any, I hope you can correct it ).

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.