Use Adt-bundle to easily build the Android development environment with Hello World (Linux) _android

Source: Internet
Author: User

This article and the "Use of adt-bundle easy to build the Android development environment and Hello World (Windows)" is a sister, but this operation was replaced by Linux. Take Ubuntu for example. is still the same as Windows. Because JDK+ECLIPSE+ADT+SDK or jdk+android studio must be networked during the installation process. Therefore, the use of jdk1.7+ decompression is the official green version of the Android development environment adt-bundle20131030 to install.

First, basic preparation

First, just like the Debian configuration JDK1.7 and the Linux Java Helloworld, install and configure JDK1.7 in Linux first. Ubuntu installation JDK1.7 is simpler than Debian.

Then, using the Download tool, download adt-bundle20131030 to the following address:

Download of 32-bit Linux: Http://dl.google.com/android/adt/adt-bundle-linux-x86-20131030.zip (click to open link)

64 Friends are: Http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20131030.zip (click to open the link), and then different from the 32-bit is, you must open the terminal, to fill in the sentence:

To supplement the system with the packages needed to run the 32-bit program, this download is fast. Unlike the SDK, ADT or something without a domestic mirror.

Second, Adt-bundle installation

1, after downloading, select a good folder directly decompression adt-bundle-linux-x86-20131030


2, get a adt-bundle-linux-x86-20131030, actually open the Eclipse folder within the eclipse is already available. Because Adt-bundle is the official Green edition, but in order to better use. or create a shortcut on the desktop for eclipse inside.


3, right click Eclipse under Adt-bundle-linux-x86-20131030\eclipse, choose to create a link, then get a shortcut. Do not use Copy to desktop. Copying to the desktop equals the act of copying an. exe to the desktop under windows and then running an. exe on the desktop. Now is the equivalent of creating a shortcut for this eclipse to the Eclipse link.


4, move "link to eclipse" to the desktop, or drag to the desktop. And then rename it.


5, because I already have an eclipse for Java EE on my desktop, so change to eclipse for Android


6, below, to add an icon for this shortcut. Right-click the shortcut, properties, and then click the icon button.


7, find the Adt-bundle-linux-x86-20131030\eclipse under the icon file icon.xpm, click on "Open", and then "off." Here, the Android development environment under Linux has been built.


Third, Hello World

1, the next operation in fact with the "use of adt-bundle easy to build the Android development environment and Hello World (Windows) is the same." Double-click the shortcut you just created and set up an engineering directory to give it. All of the Android projects will be in this directory later.


2, in the first do not rush to establish the project, first build an Android simulator.


3, the establishment of an Taian Zhuo "mobile phone", the choice of the worst configuration of the mobile phone, 2.7-inch no such card. AVD name to change casually. SD card give a 256M to it casually.


4. Close the dialog box when you have built it.


5, right key work area, establish an Android project.


6, fill in the name of the application in application name, the system will help you to complete automatically. After that, the next step, all configuration defaults, until completed.


7, after the card may be a minute, the system will automatically establish a HelloWorld project.


8, the top of the operation, select an Android application, then point to determine.


9, after the opening of the Android simulator also have to wait a long time. Although Linux and Android are homologous, the instruction system is the same, no other auxiliary compilation environment can be implemented, but also not necessarily fast where to go. Open an Android simulator, the equivalent of a mobile phone boot, open the don't turn off. Eclipse has compiled the program into an Android simulator for a few seconds, and the Android simulator has been open for a long time. Linux write Android is not necessarily better than windows, or to the simulator after the start of the minimized, and then eclipse in the card to change the program. Probably just a little bit faster than Windows.


10, here has been waiting for about 5 minutes, the same configuration than Windows2003 better, Hello World finally came out ... I began to think that Linux, like the Android command system, opened this thing in seconds ...


The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.