Eclipse + ADT + Android SDK build Android development environment, adtandroid

Source: Internet
Author: User

Eclipse + ADT + Android SDK to build an Android development environment (for example, adtandroid)
Requirements

  • Required knowledge

    Windows 7 basic operations.

  • Running Environment

    Windows 7 (64-bit );
    Eclipse-jee-luna-SR2-win32 (32 bits );
    ADT-23.0.4

  • Environment download

Recently, I started to use Android embedded development. The primary issue is to build an Andoid development environment. Because I am using a Windows 7 notebook, I can only build an Android development environment in Windows! It took a long time to build the environment, and it took a long time to build different versions, SDK package update after installation is quite troublesome (tianchao's network is well understood --). I will share my installation process and experience with you !!

Install JDK

Here, I can refer to a previous tutorial on JDK installation. As the blog site team thought it was too simple and not detailed enough, it was then harmonious ~~, But I personally think it is simple and advantageous! You do not need to find the key information you need in a large article, which can save readers reading! So I am still going to post the article I wrote earlier. Please refer to the link below.

  • Http://www.cnblogs.com/Li-Cheng/p/4334985.html
Install Eclipse

Eclipse is an open-source and Java-based scalable development platform. In itself, it is only a framework and a set of services, used to build a development environment through plug-in components. Fortunately, Eclipse comes with a standard plug-in set, including Java Development Kit (JDK ). We can build an Android Development environment by adding the ADT (Android Development Tools) Android Development tool to Eclipse.

Download Eclipse

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

Eclipse provides different development environments for non-developers and different programming languages. Here we can select the first two packages. Here I chose Eclipse IDE for Java EE Developers, that is, the second one.

  • Eclipse IDE for Java Developers: provides some tools required for JAVA development, including Java IDE, CVS client, Git client, XML editor, Mylyn, Maven, and WindowBuilder.
  • Eclipse IDE for Java EE Developers: provides JAVA Developers with tools to create java ee web applications, including Java EE, JPA, JSF, Mylyn, and EGit.
Eclipse version Selection

Select the OS version. I used Windows, so I chose Windows 32-bit. Note the following:

  • If eclipse is installed with 32-bit, JDK should also be installed with Windows x86 (32-bit); If eclipse is installed with 64-bit, JDK should install Windows x64 (64-bit. Otherwise, the error "Failed to load the JNI shared library jvm. dll" will pop up when Eclipse is started!
Eclipse Installation

After the download is complete, you will see a compressed package file in your saved location. This is eclipse, which can be directly decompressed. After decompression, you can use it. Go to the folder and double-click the Eclipse icon to start Eclipse. Now Eclipse is installed. Next, go to the Android developer website to download the ADT tool and android sdk files.

Download an independent Android SDK

If you are using your own IDE tool to develop the android program, you need to download the independent Android SDK tool (the official website provides a method for installing the SDK for Android Studio, which will be introduced next time ).

  • : Android-sdk_r24.0.2-windows.zip

ADT Android development tool Installation

ADT (Android Development Tools) Android Development tool is a Development tool for Android in the Eclipse IDE environment. It provides upgrade or change of Development Tools for Android Development, it is easy to understand that the tool for upgrading and downloading is open in Eclipse. On the official website of Android Developers (developer.android.com), we can know that Eclipse can install the ADT plug-in two ways: Online installation and offline installation (you need to download the ADT plug-in package first, can be found on the developer's official website ). The following describes how to install these two methods:

Install the ADT plug-in online in eclipse
  • 1. Start Eclipse and select Help> Install New Software on the menu bar.
  • 2. Click Add in the upper right corner.
  • 3. Enter "ADT Plugin" at Name, enter "https://dl-ssl.google.com/android/eclipse/" at Location"
  • 4. Click "OK"
  • 5. In the software dialog box, select the "Developer Tools" check box and click "Next"
  • 6. In the next window, you will see a list of tools to download. Click "Next"
  • 7. Read and accept the license agreement, and click "Finish"
  • 8. After the installation is complete, restart Eclipse
Install the ADT plug-in offline in eclipse
  • 1. Download the ADT plug-in zip file (do not unzip): ADT-23.0.6.zip

  • 2. Start Eclipse and select Help> Install New Software on the menu bar.
  • 3. Click Add in the upper right corner.
  • 4. In the "Add Repository" dialog box, click "Archive"
  • 5.select the downloaded adt-23.0.6.zip file and click "OK ".
  • 6. Enter "ADT Plugin" in Name and click "Finish"
  • 7. In the software dialog box, select the "Developer Tools" check box and click "Next"
  • 8. In the next window, you will see a list of tools to download. Click "Next"
  • 9. Read and accept the license agreement, and click "Finish"
  • 10. After the installation is complete, restart Eclipse
Configure ADT plug-in
  • 1. Start Eclipse and select windows> preferences> android
  • 2. Select "Browse" on the tab, select the zip file (the directory to be decompressed) of the downloaded Android SDK, and click OK.
  • 3. Click OK.

Duang! Now the environment is basically set up !!

Use the Android SDK Manage to add a new software package
  • 1. Start Eclipse and click
  • 2. After running the SDK, the following page is displayed. Select your desired Android version and click "Install X packages ". Installed indicates that the instance has been installed. Not Installed indicates that the instance has Not been installed !!

  • 3. Select the following Accept or Accept All in the new interface, and then click Install. The Android SDK manager starts to download and install the package you selected. We will be okay after a while!

Create an android VM using AVD Manage
  • 1. Start Eclipse and click

  • 2. Click the Create button to perform the following settings, and then click "OK"

  • 3. Select the created virtual device and click "Start-> Launch" to Start the Android simulator. Android 5.1 is offered with both hands. Haha ~~~~

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.