Build Eclipse's Android development Environment (ECLIPSE+JDK+ADT+SDK)

Source: Internet
Author: User
Tags adt packages

School Summer homework lets use Android to write an app, there are two options (Android STDUIO+SDK and ECLIPSE+JDK+ADT+SDK) for a few days to find out or the latter is useful, but the installation environment and download really go to Half life, (but because Eclipse is open source , the configuration is not deleted on the line, do not worry about the uninstall problem or very easy to use) online to find the most of the tutorials are only half said, I come to integrate, self-test installation and run the project successfully (Wiin7 64bit) and classmates (WIN10).

To write an Android development project with Eclipse, first prepare four things,Eclipse,jdk,adt and SDK. my side to all are compressed package, installation In addition to ADT do not need to decompress the remaining three need to decompress. Three files after decompression remember the path of the extracted files, the following can begin to install. (My eclipse is version 4.5 of Mars, JDK is version 1.7, ADT is version 23.0.3, SDK is version r24.4.1)

First, the environment configuration of the JDK.

System variables, Control Panel, advanced system settings

1. Create a new java_home variable that is the installation path for the JDK decompression file

2. Create a new classpath variable with a value of.; %java-home%\lib;%java_home%\lib\tools.jar ( Note that there is a . dot above )

3. Locate the path variable, add%java_home%\bin;%java_home%\jre\bin after the original value, (PS If the previous value is not at the end, add it first, and then add a trailing path )

This way the JDK environment is configured, and finally the information can be seen in the cmd input Java or javac.

Second, run the Ecplise and install the ADT.

Help->install New Software...->add (in the upper-right corner) A selection box appears, Name: General Write ADT version number, easy to find, as I gave the adt-23.0.3,location:http:// Address of the ADT ( Note to include the ZIP package name )

Two items will appear in the middle of the selection Developer tools and ndk ..., the first (Developer tools) tick on the line, and then next,next the final finish. In the installation process reported safety warning fork off, installation end requires restart, agree.

After installing and then entering Help->install New Software...->already installed will see all kinds of ADT packages, my side is ADT23.0.3.

There will be a general menu bar after the completion of the two Android icons, one is the SDK download, one is the AVD download.

If it does not appear, you can see the third Android SDK and AVD in windows->perspective->customize perspective...->action Set availability When the manager is ticked, the icon will appear in the menu.

Third, download all kinds of Android API.

Windows->preferences->android, SDK location: Select the previous SDK decompression path, ( Note to include the add-ons file to the upper level, not included in it will show the fork can not point OK; there's a problem here. , if the version of ADT is less than the SDK version requirements are not OK, my side to the ADT23.0.3 can be compatible with sdk--r24.4.1 and the following version, the previous installation of ADT21.0.1 is not possible, the other has not yet tried ). Click OK, then the SDK Manager download page is available (4.4.2,api19 version is on my side)

For file selection, it is best to complete the whole, but if the network speed and memory is limited then, as long as the corresponding API file under the SDK platform,samples for sdk,arm EABI v7a System Image (to create the emulator to use), Sources The for Android SDK can also run project files. (only one or two of the lower versions can be used) Select the install packages and then start the installation. It usually takes more than one hours, then you can put it on your own to install it.

Restart eclipse after installation to build an Android development project. (Below is the emulator I ran successfully)

Attach four compressed packages to be used when building Baidu Cloud address: Http://pan.baidu.com/s/1c1PvPss

Build Eclipse's Android development Environment (ECLIPSE+JDK+ADT+SDK)

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.