[Android learning topic] Build an android Development Environment

Source: Internet
Author: User
ArticleDirectory
    • Installation Steps (online and offline)

Bytes ------------------------------------------------------------------------------------------------------------------------

[Android learning topic] Build an android Development Environment

   Skyseraph Dec 2nd 2011 hqu

Email:Zgzhaobo@gmail.comQQ: 452728574

Latest modified Date: Dec 2nd 2011 hqu

Bytes ------------------------------------------------------------------------------------------------------------------------

 

 

Installation Steps (online and offline)

 

    • JDKInstall(JavaDevelopment Environment)

 

N download JDK: http://www.oracle.com/technetwork/indexes/downloads/index.html

 

N install JDK

 

N environment configuration (computer-properties-advanced-environment variables-system variables)

 

U adds two new variables and sets the value.

 

L java_home: D: \ Program Files \ Java \ jdk1.6.0 _ 23 (JDK installation directory)

 

L classpath:.; % java_home % \ Lib \ tools. jar; % java_home % \ Lib \ DT. jar; % java_home % \ bin;

 

U append after path: % java_home % \ bin;

 

U restart

 

N check JDK: Run-> cmd-> JAVA-version

 

    • EclipseInstall

 

N download: http://www.eclipse.org/downloads/, select Eclipse IDE for Java developers or another version, must be version 3.4 or later

 

N. decompress the package.

 

    • Android SDK-Download Tool Install

 

N download: http://developer.android.com/index.html, latest version, select .zipcmd.exe File

 

N installation: Install the. exefile or decompress the. ZIP file to the specified directory.

 

N run SDK setup.exe and click available packages.

 

If no package is available, click Settings, select "Force https: //..." In MISC, and then click available packages.

 

U select the SDK you want to install and its documentation or other packages, and click installation selected, accept all, install accepted to download and install the Selected Package

 

N environment Configuration

 

U append the following path: Tools directory. The local machine is D: \ Program Files \ Android-SDK-Windows \ tools. Restart

 

N detection SDK: Run-> cmd-> Android-H

 

    • Android SDK-Installation Package Install

 

N download: http://www.verycd.com/topics/2887449/

 

N Extract

 

N environment Configuration

 

U adds a new variable and sets the value android_sdk_home: Location of the android simulator.

 

U appended to path: % android_sdk _ home % \ tools;

 

N check SDK: first run the SDK manager.exe, and then click Run-> cmd-> Android-H

 

    • ADTOnline Installation

 

N open Eclipse IDE, help-> install new software-> Add-> dialog box, enter name and location

 

U name: Any

 

U location: http://dl-ssl.google.com/android/eclipse or https://dl-ssl.google.com/android/eclipse

 

N installation: select all or only the android ddms and Android development tools, and choose-> next,-> next,-> finish

 

N: Set "SDK location"

 

U restart eclipse and go to window> preferences> Android> browse... Select the SDK path folder

 

U apply-> OK

 

    • ADTOffline Installation

 

N open Eclipse IDE, help-> install new software-> Add-> archive-> select ADT-** .0.0.zip, all the way to next

 

N Note: remove the following 3rd hooks. Do not check for updates. Otherwise, the check takes a long time.

 

    • CreateAVD-Method1

 

N open eclipse. Go to Windows> Android SDK and AVD Manager

 

N virtual devices-> New

 

When no option is available in the U target drop-down list (cause: some necessary available packages (available packages) are not installed in the android SDK installation ))

 

U first click available packages on the left panel, and select https://dl-ssl.google.com/android/repository/repository.xml on the right

 

U and then click Install selected.

 

N: enter the name and select the target API. the SD card is of any size and skin is selected. Currently, the default value of hardware is used.

 

N Click Create AVD to create the AVD.

 

    • CreateAVD-Method2

 

N view the current targets: Run-> cmd-> Android list targets

 

N create AVD: Run-> Android create AVD-name <Name> -- target <AVD Name>

 

N specifies AVD in eclipse

 

    • TestSample

 

N open eclipse. File-> New-> Project menu, select "android Project"

 

N select Create project from existing source, and select a project under the sample directory under the SDK package

 

N run

 

    • References

 

N installing the SDK http://developer.android.com/sdk/installing.html #

 

N Android development tour: environment construction and helloworld http://www.cnblogs.com/skynet/archive/2010/04/12/1709892.html

 

 

// ================================================ ========================================================== ========== //

 

Bytes ------------------------------------------------------------------------------------------------------------------------

 

Author:Skyseraph

 

Email/Gtalk:Zgzhaobo@gmail.comQQ: 452728574

 

From:Http://www.cnblogs.com/skyseraph/

 

The copyright of this article is shared by the author and the blog. You are welcome to repost this article. However, you must retain this statement without the author's consent and provide a clear link to the original article on the article page. Otherwise, you will be held legally liable.

 

 Bytes -----------------------------------------------------------------------------------------------------------------------

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.