Android development environment built under Windows environment

Source: Internet
Author: User

Android Development Environment Building
    1. Tools
    • Jdk:http://www.oracle.com/technetwork/java/javase/downloads/index.html

The JDK (Java development Kit) is the core of the entire Java, including a series of Java development things, installation needs to configure the environment variables.

Java_home:

JDK installation path, the environment variable itself does not exist, need to create, you can use%java_home% as a unified reference path, the value is: JDK on your computer installation path.

PATH:  

The Path property already exists and can be edited directly. The function is used to configure the path, simplifying the input of the command with a value of:%java_home%\bin.

CLASSPATH:

For the path of the Java class at compile time, note that the two values are set here (.;) Indicates that the JVM searches the current directory first. The value is:.; %java_home%\lib\tools.jar.

After the configuration is complete, run the following command through CMD: Java-version,javac If the return message appears, the setting succeeds.

    • Eclipse:http://www.eclipse.org/downloads/?

Eclipse is an IDE developed for Java and Android. Eclipse does not need to be installed, unzip the unpacking package, cut the Eclipse folder to the place where you want to install it, and set up your working directory when you open it.

    • Android sdk:http://developer.android.com/sdk/index.html

The Andorid SDK is a development kit tool for Android management, which provides development kits and tools for Android platforms at all levels. Note that because we are standalone installed, not integrated (integrated series tools), we need to download the SDK separately. ()

Run the installation software and set the Tools folder path under the installation directory into the PATH environment variable. Run SDK Manager under the installation directory.

Tools-Options ... Fill in the agent, click Close Then there will be a number of platform list, the Android Tools selected installation, it is recommended that more than 2.2 of all download installation.

    • Adt

Launch Eclipse, click on the Help menu, Install New software ...? Add ...?, enter Address: http://dl-ssl.google.com/android/eclipse/. Select the installed item, all the way next.

Configuring ADT

Select Window---Preferences, in the pop-up panel you will see the Android settings, fill in the Installed SDK path, you will have just installed in the SDK of the platform packages, press OK to complete the configuration. The Android environment is now ready to be developed for Android projects.

2. Create a first Android project

Choose android Application Project, File--New Enter the app name. All the way next until finish, the project was created.

Because the program is running on the emulator, you need to create an emulator:

Complete configuration Click the Triangle Run button, and then select the emulator you just created, and the program starts running. Tip: Start the simulator will be slow, so when the program to make changes, need to run again, do not close the simulator, directly on the simulator home or Back button to exit the app, and then press run, you can run again.

Android development environment built under Windows environment

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.