Eclipse+ADT+Android SDK to build Android development environment

I just started to get in touch with Android (Android) embedded development recently. The first problem is to build the Andoid development environment. Since I use a Windows7 laptop, I can only go to Windows to build the Android development environment! It took a long time to build the environment. It took a long time to toss between various versions, and it was a big trouble to update the SDK package after installation (everyone knows about the Internet of the Celestial Dynasty--). Let me share my installation process and experience with everyone! !

Install JDK

Here you can refer to a tutorial I wrote before about installing JDK. Because the blog garden team felt that it was too simple and not detailed enough, it was harmoniously written~~, but I personally think that it is simple and simple! You don't need to find the key information you need in a large article, which can save readers' reading! So I still plan to post the article I wrote before, please see the link below.

Install Eclipse

Eclipse is an open source, Java-based extensible development platform. On its own, it's just a framework and set of services for building a development environment through plugin components. Fortunately, Eclipse comes with a standard set of plugins, including the Java Development Kit (JDK). We can build an Android development environment by adding ADT (Android Development Tools) Android development tools to Eclipse.

Download Eclipse

Download address: http://www.eclipse.org/downloads/

Eclipse provides different development environments for different developers and different programming languages, here we can choose the first two packages. Here I choose Eclipse IDE for Java EE Developers, which is the second one in the picture above.

  • 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 tools for JAVA developers to create JAVA EE WEB applications, including Java EE, JPA, JSF, Mylyn, EGit, etc.

Eclipse version selection

Here you can choose according to your personal operating system version. I said before that I'm using Windows, so I chose the Windows 32-bit version. The things to note here are:

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

Eclipse installation

After the download is complete, you will see a compressed package file where you saved it, which is eclipse, just unzip it directly. After the decompression is complete, you can use it, enter the folder, double-click the Eclipse icon, and you can start Eclipse, and the installation of Eclipse is complete. The next step is to go to the Android developer website to download the ADT tool and the android sdk file.

Download Standalone Android SDK Tools

If you are using your own IDE tool to develop android programs, you need to download the independent Android SDK tool (there is a way to install the SDK for Android Studio on the official website, which will be introduced next time).

ADT Android development tools installation

ADT (Android Development Tools) Android development tools are Android development tools in the Eclipse IDE environment. It provides upgrades or changes of development tools for Android development. It is simply understood as an upgrade and download tool for open tools under Eclipse. Through the Android developer official website ( developer.android.com ), we can know that Eclipse can install the ADT plug-in in two ways, online installation and offline installation (you need to download the ADT plug-in package first, which can be found on the developer's official website). Below I will introduce how to install in two ways:

Eclipse online installation of ADT plug-in

  • 1. Start Eclipse, then select Help > Install New Software on the menu bar
  • 2. Click the Add button in the upper right corner
  • 3. Enter "ADT Plugin" in Name and "https://dl-ssl.google.com/android/eclipse/" in Location
  • 4. Click "OK"
  • 5. In the software dialog, check the "Developer Tools" checkbox, then 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

Eclipse offline installation of ADT plugin

  • 1. Download the zip file of the ADT plugin (don't unzip it): ADT-23.0.6.zip

  • 2. Start Eclipse, then select Help > Install New Software on the menu bar
  • 3. Click the Add button in the upper right corner
  • 4. In the "Add Repository" dialog, click "Archive"
  • 5. Select the downloaded adt-23.0.6.zip file and click "Confirm".
  • 6. Enter "ADT Plugin" in Name and click "Finish"
  • 7. In the software dialog box, check the "Developer Tools" checkbox, then 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 the ADT plugin

  • 1. Start Eclipse, select windows>preferences>android
  • 2. Select "Browse" in the tab, select the directory (decompressed directory) of the Android SDK zip file (need to be decompressed) downloaded before, and click OK
  • 3. Click OK

Duang! The environment is basically completed here!!

Add new packages via Android SDK Manage

  • 1. Start Eclipse and click on the menu bar
  • 2. After running, the following interface will appear, select the Android version you need, and then click "Install X packages". Installed means installed, Not installed means not installed!!

  • 3. In the new interface, select Accept or Accept All as follows, and then click Install. The Android SDK Manager will start downloading and installing the package of your choice, and we're done waiting for a while!

AVD Manage to create an Android virtual machine

  • 1. Start Eclipse and click on the menu bar

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

  • 3. Select the virtual device you just created, and then click "Start->Launch" to start the Android emulator. Android 5.1 with both hands, haha~~~~~

 

http://www.cnblogs.com/Li-Cheng/p/4335418.html

http://www.cnblogs.com/zoupeiyang/p/4034517.html

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326939296&siteId=291194637