Android software development Environment built

Source: Internet
Author: User
Tags zip root directory java se

Step One: Download and install the JDK (Java SE Development Kit)

Since both the Android SDK and Eclipse are written in Java, you need to first install the JDK on Windows 7 and click on the JDK on the page:

On the open page, select Platform for Windows and select Agree license agreement, then click Continue:

Next is to download the JDK installation program according to the page prompts, after downloading completes, double click installs the program, according to the wizard's prompt completes installs.

  Step two: Download and install the Android SDK

First, go to the latest Android SDK suite from the website http://developer.android.com/sdk/to get the Windows platform, download the completion will get an installation file, download the page as shown in the following image, please download the Red Square box out of the file:

Double-click the downloaded installer installer_r09-windows.exe, install it as prompted by the Installation Wizard, the default will be installed in the C:Program filesandroidandroid-sdk-windows directory, after the installation is complete, the SDK The manager starts automatically by default.

When SDK Manager starts, since we have not downloaded any Packages, a choose Packages to Install dialog box will pop up to ask you if you want to install all available Packages, because I just wanted to install Android 2.3 Related packages, so here I click Cancel to close the dialog box and return to the Android SDK and AVD Manager's main interface.

You can later start the SDK Manager by locating the Android SDK Tools in the Start menu and clicking the SDK Manager, as shown in the following illustration:

Because the default SDK is installed on the C disk, it is a good idea to run the SDK manager as an administrator, otherwise it will fail when you download and install packages because you cannot write to C, and you can set up to start as an administrator each time you start the SDK by using the following methods:

1 Right-click the SDK Manager shortcuts in the Start menu, point properties

2 in the SDK Manager Shortcut Properties dialog box, click on the "Compatibility" tab and select "Run this program as Administrator", as shown in the following figure:

Every time you click the shortcut to run the SDK, the permission confirmation dialog pops up, click "Yes" to run the program as an administrator.

  Step three: Download and install the associated packages for Android 2.3

Start the SDK manager as an administrator, select "Available Packages" on the main interface of the Android SDK and AVD Manager, and click on the ">" icon in front of the Android repository to expand the options. Refer to the following figure to select the Android 2.3.1 related options:

In the above dialog box, click the "Install Selected" button, in the pop-up choose Packages to Install dialog box, select the "Accept All" Radio box, click the "Install" button, will enter the download process, Download speed depending on your Internet connection, please be patient and wait for the download to complete.

When the download is complete, a dialog box that asks if you want to restart the ADB will pop up and click Yes.

  Step four: Install the Eclipse integrated development environment

Android recommended IDE for Eclipse, visit the following address download eclipse:http://www.eclipse.org/downloads/:

In the download page, refer to the following figure, select the Windows category, and then download the Eclipse IDE for Java developers version (download 32bit or 64bit version depending on the actual situation of your Windows7 version), as shown in the following illustration:

After downloading, you will get a compressed package named Eclipse-java-helios-sr1-win32.zip (with the Eclipse version updated, the file name may be different), eclipse is not required to install, the direct decompression can be used, recommended in D: Extract the compressed package under the root directory, unzip it into the Eclipse directory, and double-click Eclipse.exe to start Eclipse.

At startup, you first set the path to workspace, which is used to save the source code of all the programs you have created, and you can modify it by yourself, as shown in the main interface of Eclipse after startup:

  Step five: Install the Android Development Tools plugin

In the previous steps, we installed the Android SDK and Eclipse separately, but to use the Android SDK in Eclipse, we also need to install a ADT plug-in in Eclipse, as follows:

Visit the URL http://developer.android.com/sdk/eclipse-adt.html#installing, find the ADT download link in the Web page to download it, as follows:

After downloading the file Adt_9.0.0.zip, after decompression to get the following files:

Exit eclipse, and then copy and overwrite the files in the Eclipse directory to complete the installation.

  Step Six: Configure Eclipse

Start Eclipse, click on the Window menu in the Eclipse main interface, select Preferences, in the Preferences dialog box, select "Android" on the left, and click on the Brower button on the right SDK location right. Select the installation path for the SDK, the default path is C:Program Filesandroidandroid-sdk-windows, as shown in the following illustration:

Click OK to complete the configuration.

  Step Seven: Create an android emulator

Locate the Android SDK Tools in the Start menu and click SDK Manager to launch the SDK manager, which will pop up the Android SDK and AVD Manager dialog box and click the "New ..." button to eject "Create new Android Virtual Device (AVD) dialog box, enter in Name: Android-avd,target: Android 2.3.1-API level 9,SD card input 512, other options default, click " The Create AVD button is available as shown in the following illustration:

When the creation is complete, the emulator is listed in the list, as shown in the following illustration:

You can select it in the list, click Start, and click the launch Launch Simulator in the Pop-up Launch Option dialog box, which looks like this:

Problems encountered and solutions:

(1) After the new simulator is not open.

Reason: The emulator's environment variable is set incorrectly

Workaround: Add to the system variable:

Variable name: android_sdk_home

Variable Value: C:Program filesandroidandroid-sdk

(2) Eclipse cannot find the Android API

Reason: ADT version is too low

Workaround: Replace the higher version of the ADT (such as ADT10.0.1)

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.