Eclipse + ADT (Android) Development Environment under Ubuntu10.10

Source: Internet
Author: User
System Environment: Ubuntu10.10 desktop environment: gnome2.32.0 Development Environment: Under shell: Install eclipse: sudoapt-getinstalleclipse install java6-jdk: sudoapt-getinsatllsun-java6-jdk. will automatically integrate install jre. Download and install AndroidSDKhttp: //

System Environment: Ubuntu 10.10

Desktop Environment: gnome2.32.0

Development Environment:

In shell:

Install eclipse: sudo apt-get install eclipse

Install java6-jdk: sudo apt-get insatll sun-java6-jdk. jre is automatically integrated.

Download and install Android SDK http://androidappdocs.appspot.com/sdk/index.html

Click package after linux (i386)

Decompress tar zxvf package in shell

Configuration and test:

Open eclipse, help --> install new sofetware; Work with and add. Click it.

In the pop-up window, enter e.g. Android Plugin and https://dl-ssl.google.com/android/eclipse/. then, select the developter tools in namespace. Next. Restart the plug-in file.

Specify the directory of the tools in the android SDK: In eclipse, window --> preferences --> android click on the edges. The setting window appears on the right, select the android SDK Location after decompression in the browse after SDK Location. That is, the location of the android-sdk-linux_x86 folder. Click OK.

In eclipse, select window and android SDK and AVD manager. On the left side of the dialog box that appears, select installed packages, update all, and then select the android platform you want. I only selected the 2.2 system, and then restarted eclipse. open this box, select virtual devices on installed packages, and click new on the first button on the right. In the displayed input box, create a name for the new virtual machine. On Target, select the Target platform version you want to develop. SD Card does not have much effect. Skin can be used by default. Click create AVD.

Test the new HelloWorld program:

File --> new --> android Project,

By default, nothing will change. input the following in one time:

Project name: helloworld

Aplication name: hello

Package name: com. chenlb. android

Create Activity: HelloWorld

Min SDK Version: 8

Click Finish

Under Search, there is a green button (a little bigger than nothing), click the triangle to select run events.

On the left. Double-click android application. On the right side, name: helloworld, and project: Enter helloworld. Then RUN. Be patient

Set environment variables.

Export PATH = "$ PATH:/directory, starting from the user's home directory /"

Source. bashrc

Successful!

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.