Android Development Environment Building

Source: Internet
Author: User

1.1. Install the JDK & Eclipse Android Development Kit

Jdk:http://www.oracle.com/technetwork/java/javase/downloads/index.html

If you do not want to download and install the other old JDK, pull down to the end of the face and click Download

ADT Toolkit: http://developer.android.com/sdk/index.html

Note: If the Web page fails to open, access by proxy is available.

Use or install directly after decompression.

1.2 Configuring environment variables

Environment variables:

My Computer > Properties > Advanced System Configuration > Environment variables, the path variable plus the JDK installation path, and the Platform-tools and tools directory of the Android SDK.

Such as:

C:\Program Files\java\jdk1.7.0_03\bin;%androidsdk%\tools;%androidsdk%\platform-tools;

Test: Java, Javac, Android, ADB, emulator and other commands can be used directly,

Check Eclipse the android SDK path configuration: window>preferences

1.3. Create your first Android project

L file>new>android Application Project, fill in the basic information and go all the way next to finish.

L start the simulator, or use the real machine

L add several buttons to start the project: Project right >run as Android application

The ADB command uses

ADB uninstall<package name> Uninstall program: ADB uninstall Com.example.test1

ADB Install <filename> installation program: adb install test1.apk

ADB Shell am Start <packagename/.mainclass> Start Program:

ADB shell am start com.example.test1/. Mainactivity

Other program reference commands help document, or search engine

Android Development Environment Building

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.