Windows 7 deployment Android development environment combat map

  

This page describes how to install the Android SDK on Windows 7 system and how to set up your development environment. Then read the follow-up documentation to learn how to install, configure, and use the SDK to create an Android app.

Preparing Files: exactly

Installation WIN7 and XP installation.

1, the installation JDK

Run jdk-6u14-windows-i586.exe






Check if the JDK is installed successfully. Open the cmd window and type java –version to view the JDK version information.

2, the installation Eclipse

directly decompress Eclipse3.4.1.zip to the specified directory as: F: \\ Android \\ eclipse

Run eclipse. exe, provided Workspace, to specify a directory it can develop a

see the following interface, Eclipse installed

3, mounting android-sdk-windows-1.5 _r3.zip

Android SDK with Eclipse, as you can decompress directly, I unzipped to the folder F: \\ Android in

the Android SDK tools in the absolute path Add to the system PATH.

Open & ldquo; System Properties & rdquo; select & ldquo; Environment variables & rdquo;

Add absolute path PATH environment variable to the value of the SDK tools, as shown

“After determining ”, restart your computer.

After restarting the computer, go to the cmd command window and check if the SDK is successfully installed.

Run android –h If the following output is available, the installation is successful.

4, mounted Android Development Tools (ADT)

Open Eclipse IDE

to enter the menu " Help " - & gt; " Software Updates " < Br>

Go to Tab"Available Software" -> "Add Site" –> "Location:"Enter

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

check " Android DDMS " and " Android Development Tools ", " Install " as shown below:

Next way , pay attention to the Accept license until it is completed.




" Yes " restart " Eclipse ", to complete the installation.

5, Set "SDK Location"

Open Eclipse IDE

Go to the menu "Window" -> "Preferences"

open " Preferences " window, select " Android "

Forget pop-up error window, directly set " SDK Location " for the SDK installation directory.


" OK " later, again open this window, you can see a list of SDK

6, verification environment to develop, test procedures and create HelloWorld

to enter the Eclipse IDE menu " File " - & gt; " New " - & gt; " Project "

select " Android Project " Next

complete the next reference fill in basic information, (note the last column, if the election Android1.5, " Min SDK Version " must be 3)

When you finish creating, closed Eclipse's Welcome window.

item just created

Next, create an Android Virtual Device AVD

cmd to open the console, perform android list target view available platform

Create an AVD based on the android create avd –name –target
format.



This completes the Android Virtual Device

custom Finally, configuration " Eclipse " a " Run Configuration "

enter the menu " Run " - & gt; " Run configurations "

Double-click on " Android Application " to create a new profile, set the Name item

Specifies the right side of the " Android " tab " project " project

on the right side " check to create their own & quot tab;; Target & quot AVD ", " Apply " later, " Run "

is selected from the start-up mode " Android Appliaction "

normally should see the simulator interface

But I have made a mistake here,

[2010-04-01 02:16:07 - HelloWorld] Automatic Target Mode: Preferred AVD 'sdk_1_5' is not available. Launching new emulator.

[2010-04-01 02:16:07 - Hello World] Launching a new emulator with Virtual Device 'sdk_1_5'

[2010-04-01 02:16:07 - Emulator] emulator: ERROR: unknown virtual device name: 'sdk_1_5'

[2010-04-01 02:16:07 - Emulator] emulator: could not find virtual device named 'sdk_1_5'

The reason is that I moved the MyDocument folder of the system and went to the root directory of the folder where MyDocument is located. Locate the ".android" folder and copy it into the "C:\\Users\\[current user name]" directory

Ctrl+F11 to successfully enter the emulator.

If you have any other problems, try "Project" -> "Clean" current project, try again~

Copyright © Windows knowledge All Rights Reserved