Android development environment Configuration and HelloWorld

Source: Internet
Author: User

One: JAVA

: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

1.1 Java_home

1.2 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.

1.3 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.

1.4 Testing

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

II: Eclipse

: Http://www.eclipse.org/downloads

Three: Android SDK

Address: http://developer.android.com/sdk/index.html.

Set Path:c:\mywork\android\sdk\tools

IV: ADT

Offline Package: http://developer.android.com/sdk/installing/installing-adt.html

After downloading, open eclipse→help→install New software, select work with: Add ... → Enter Android plugin→ in the local option to find the ADT package in archive → Click ok→ to check the option in the name below.

After installation, select Window---Preferences, you will see the Android settings in the pop-up panel, fill in the Installed SDK path, you will find the platform package installed in the SDK, press OK to complete the configuration. The Android environment is now ready to be developed for Android projects.

V: HelloWorld

Choose android Application Project, File--New

All the way next, then appears:

Then, the item on the pastry right-click on Run as Android, will prompt us to create the simulator, we set the following:

Finally, we get:

Android development environment Configuration and HelloWorld

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.