Build an Android development environment and build an android Development Environment

Source: Internet
Author: User
Tags change settings

Build an Android development environment and build an android Development Environment

There are roughly three Android development environments: Android Studio (IntelliJ IDEA-based Android Development Environment released by Google) + JDK and ADT Bundle (Google integrated Eclipse + Android SDK + ADT Development Environment) + JDK and manual integrated development environment (Eclipse + ADT + Android SDK + JDK ). Among them, ADT (Android Develop Tools) is an Android development tool compiled by Eclipse in the IDE environment. You can install ADT in Eclipse to update and download new versions of Android development Tools in the Eclipse environment; android SDK (Android Software Development Kit) is an essential Android Software Development tool set for Android Development; JDK (Java Development Kit) is a set of Development kits provided by Sun for developing Java applications. Android development does not support IDE compiling environments, but requires Android SDK + JDK (ADT is a tool for Android development in the Eclipse compiling environment ). The steps for setting up the Android development environment are as follows (This section describes ADT Budle and the manual integration environment. You can search for information by yourself when setting up the Android Studio environment ):

1. Download the JDK installation package

1.1 download the JDK from the official website: http://www.oracle.com/technetwork/java/javase/downloads/index.html?. This document uses:

1.2 install JDK, double-click the installation file, and click NEXT. Remember to select your own installation path. In this article, select C: \ Program Files \ Java (you can select the installation path on your own, can be installed on disk C), and then enter the JDK installation directory, you can see:

1.3 set JDK Environment Variables

1.3.1 go to the JDK environment variable settings page, computer-properties-advanced-environment variables (XP system), computer-properties-change settings-advanced-environment variables (windows System ), user variables or system variables can be selected by yourself. User variables are valid for the current user, and system variables are valid for all users (the difference is not big if the computer logs out of the user ). Settings page

1.3.2. Set the JAVA_HOME environment variable. This document sets it as a system variable. Click the new button below the system variable. The variable value is the jdk path under the Java installation directory. For details, see:

1.3.3. Set the Path environment variable. If the Path variable exists, add it directly behind the variable value; % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin (front side; is distinguished from the previous attribute.

1.3.4 set the ClassPath environment variable. Because ClassPath is used to search for Java classes according to the path set by ClassPath when running Java applications, because JDK 1.5 or a later version does not need to set this variable, Java classes are searched in the current path by default. Of course, you can also set this variable if an error occurs ..

1.3.5. Check JDK installation and environment variable settings. Open the dos window, press win + r, Enter cmd, and press Enter to Enter the dos command window. Enter java-version, if the following information is output, the JDK installation and environment variables are successfully set. :

Ii. Download and install Eclipse

Go to the official website http://www.eclipse.org/and select the desired version to download (Classic version is recommended on the official website). Download it and decompress it. You can enable eclipse.exe in the double-click eclipseextract directory (errors may occur if JDK is not installed and Eclipse is enabled ).

3. Install ADT

Open Eclipse, select Help-Install New SoftWare, and click the add button to enter the following interface, enter the corresponding property values, and then click OK:

After the following page is displayed, check the option (the options may vary) and install it. After the installation is complete, you will be prompted to restart eclipse and select YES.

At this point, the installation of ADT is complete.

4. download and install the Android SDK. After the installation is complete, open Eclipse, select windows-Preferences-Android-SDK Location to point to the SDK installation directory-click applay-OK. The SDK installation and configuration are complete here. As shown in:

Summary:

ADT is a required tool for Android development in the Eclipse compiling IDE environment, but it is not required for Android development. Install and configure the JDK environment variables before enabling Eclipse. Otherwise, an error occurs when enabling eclipse. To build the ADT Bundle environment, you only need to configure JDK + Android Sdk for Android development.

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.