Android uses Adt-bundle to easily build Android development environment and Hello World under Linux

Source: Internet
Author: User

This article and "Android" using Adt-bundle in Windows easy to build Android development environment and Hello World (click to open the link) is a sister article, but this operation replaced by Linux. Take Ubuntu as an example. is still the same as Windows. Because JDK+ECLIPSE+ADT+SDK or Jdk+android studio has to be networked during installation. So also choose jdk1.7+ Decompression is the official green version of the Android development environment adt-bundle20131030 to install.

First, basic preparation

First of all, with "Linux" in the Debian configuration JDK1.7, and Linux Java Helloworld (click to open the link), first installed in Linux, configuration JDK1.7. Ubuntu installs 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, fill in a sentence:

sudo apt-get install Ia32-libs  
To supplement the system with the packages required to run the 32-bit program, this download is fast. Unlike the SDK, ADT, or no domestic mirror.


Second, Adt-bundle installation

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


2, get a adt-bundle-linux-x86-20131030, actually open the Eclipse folder inside the eclipse is ready to use. Because Adt-bundle is the official green version, but for better use. or create a shortcut to the Eclipse on the desktop.


3. Right-click Eclipse under Adt-bundle-linux-x86-20131030\eclipse, select Create link, then get a shortcut. Do not use Copy to desktop. Copying to the desktop is equivalent to 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 the link to eclipse to the desktop, or drag it to the desktop. And then rename it.


5. Because I already have an eclipse for Java EE on my desktop, I changed it to eclipse for Android


6. Below, add an icon for this shortcut. Right-click on the shortcut, properties, and click on the icon button.


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



Third, Hello World

1, the next operation in fact with the "Android" using Adt-bundle in Windows easy to build Android development environment and Hello World (click Open link) is the same. Double-click the shortcut you just created, and set up a project directory for it. All of the Android projects are in this directory later.


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


3, set up an Android "mobile phone", choose the worst configuration of the phone, 2.7-inch not so card. AVD name is changed casually. SD card Give it to a 256M.


4. Close this dialog box when you are ready to build.


5, right-click Work area, establish an Android project.


6, in Application name fill in the name of the application, the system will help you complete the auto-completion. After the next step, all configurations are default until completed.


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


8, click on the top of the run, select the Android app, then click OK.


9, after opening the Android simulator will also have to wait a long time. Although Linux and Android are homologous, the command system is the same, without the other auxiliary compilation environment can be executed, but it is not necessarily fast where to go. Open Android Simulator, the equivalent of mobile phone boot, open do not turn off. Eclipse compiles the program to the Android simulator for a few seconds, and the Android simulator is open for a long time. Linux does not have to write Android much better than Windows, or to open the simulator after the minimization, and then the Eclipse card to change the program. Maybe it's just a little bit faster than Windows.


10, here waited for about 5 minutes, the same configuration than Windows2003 better, Hello World finally came out ... I began to think that Linux is the same as the Android command system, open this thing is the second open ...


Android uses Adt-bundle to easily build Android development environment and Hello World under Linux

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.