Build an Android development environment with integrated ADT bundles

Source: Internet
Author: User

Build the Android development environment

This article uses integrated ADT bundles to build an Android development environment, so-called bundles are a ECLIPSE+SDK integrated environment that Google has built. The list of software to download is as follows:

1. ADT bundle:http://developer.android.com/sdk/index.html

After entering the page as shown, click on the blue button in the picture. The file size is 442M, if you download only dozens of trillion, it means that the download when the file was damaged or for some reason did not download the full, need to re-download.

2, jdk:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

The section of the page is as follows, be sure to select the Accept License Agreement radio box before allowing the download.

There are several noun explanations used in this article:

1. Adt:android development tools refers to the Android development tool, a plugin for eclipse, which links eclipse with the SDK.

2, Jre:java Runtime environment refers to the Java Runtime Environment, contains the JVM, that is: Java Virtual machine, because the JVM is the implementation of the Java language cross-platform.

3. Jdk:java Development Kit Java Development Toolset, which contains the JRE.

4. Sdk:software Development Kit is a proprietary software development kit for Android. Android virtual machines are inseparable from this package.

Environment Construction:

There is no need to say more about ADT, just unzip it and copy the folder to the directory where you want to build the Android environment.

For the JDK, it integrates the JRE,JDK installation and automatically installs the JRE. It is important to note during the installation that the JDK and JRE cannot be installed in the same directory or that ant cannot be used.

Settings for Environment variables:

1, in your Jdk\bin directory, sdk\tools, sdk\platform-tools installation directory added to the system environment variable path, my installation path is as follows:

D:\java\adt-bundle-windows-x86-20130729\sdk\tools;d:\java\adt-bundle-windows-x86-20130729\sdk\platform-tools;d : \java\jdk\bin;

2. Add the system variable Java_home and set its value to the installation directory of your JDK:

Java_home=d:\java\jdk

Add the system variable classpath and set its value to:.; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar;%java_home%\lib;

Classpath=.; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar;%java_home%\lib;

When you enter Java in cmd, the javac does not appear with an error message indicating a successful configuration.

3, open ADT Bundle extracted files, there is an Eclipse directory, enter, double-click Eclipse.exe, open after some will be reminded to find the SDK.

Click menu Window->preferences

Click android on the left, click the Browse button on the right to find the directory where your SDK is located

Click the button apply->ok restart eclipse even if it is configured.

Turn from:

http://blog.csdn.net/sdvch/article/details/10817933

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.