How to deploy the android development environment in Windows 7 (eclipse + ADT)

Source: Internet
Author: User

I made this tutorial into a PDF, slow network friends can download http://files.cnblogs.com/vengen/AndroidSetup.zip here

 

Prepare the file:

Windows 7 is installed in the same way as Windows XP.

 

1. Install JDK

Run jdk-6u14-windows-i586.exe

 

 

Check whether JDK is successfully installed. Open the CMD window and enter Java-version to view the JDK version.

2. Install eclipse

Directly decompress eclipse3.4.1.zip to the specified directory, for example, F: \ Android \ eclipse.

 

Run eclipse.exe, set workspace, and specify a Development Directory for it.

The following page is displayed. Eclipse installation is complete.

3. Install android-sdk-windows-1.5_r3.zip

Like Eclipse, Android SDK can be decompressed directly. I can decompress the SDK to the folder F: \ android.

Add the absolute path of the tools in the android SDK to the system path.

Open "System Properties" and select "environment variable"

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

After "OK", restart the computer.

After restarting the computer, enter the CMD command window and check whether the SDK is successfully installed.

If Android-H has the following output, the installation is successful.

 

4. Install Android development tools (ADT)

Open Eclipse IDE

Choose "help"-> "Software Updates" from the menu"

Go to the tab "available software"-> "add site"-> "Location:" Enter

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

 

Check "android ddms" and "android development tools", as shown in "Install:

All the way to next, pay attention to the accept license until it is complete.

 

"Yes" restart "Eclipse" to complete installation.

 

5. Set "SDK location"

Open Eclipse IDE

Choose "window"> "Preferences" from the menu"

Open the "Preferences" window and select "android"

 

In the error window that appears, set "SDK location" to the SDK installation directory.

"OK", open this window again, and you can see the SDK list

 

6. Verify the development environment and create a helloworld test.Program

Choose "file"> "new"> "project" from the Eclipse IDE menu"

Select "android project" and click "Next ".

 

Complete the basic information. (Note that if android1.5 is selected in the last column, "Min SDK version" must be 3)

Close the welcome window of eclipse after creation.

The project you just created

Next, create the android Virtual Device AVD.

Open the CMD console and run the android list target command to view available platforms.

 

According to Android create AVD-name <AVD name>-Target <ID> Format: Create an AVD.

 

This completes the custom Android virtual device.

Finally, configure "Run configuration" of "Eclipse"

Choose "run"-> "Run deployments" from the menu"

Double-click "Android Application" to create a new configuration file and set the name item

Specify the "project" project in the "android" tab on the right

Select the self-created "AVD" and "Apply" on the "target" tab on the right, and then click "run"

Select the Boot Method "android Appliaction"

Normally, you can see the Simulator Interface.

But an error occurred on my side,

[02:16:07-helloworld] Automatic Target mode: preferred AVD 'sdk _ lifecycle 5' is not available. Launching new emulator.
[02:16:07-helloworld] launching a new emulator with virtual device 'sdk _ lifecycle 5'
[02:16:07-emulator] emulator: Error: Unknown Virtual Device Name: 'sdk _ register 5'
[02:16:07-emulator] emulator: cocould not find virtual device named 'sdk _ register 5'

The reason is that I moved the mydocument folder of the system and found the ". Android" folder in the root directory of the folder where mydocument is located and copied it to the "C: \ Users \ [current user name]" directory.

CTRL + F11, successfully enters the simulator.

 

If you have other questions, try "project"-> "clean" current project and regenerate it.

 

 

Vengen

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.