Create an Eclipse-based Android development environment in Ubuntu

Source: Internet
Author: User
I have installed it through the Ubuntu virtual machine. The following is the installation: Install eclipse first, download the linux version of eclipsejee3.5, and decompress it. You can set a shortcut (soft connection) for the eclipse command on the desktop ). Install and configure Androidsdk to download and install androidsdk. Http://dl.google.com/android/android download path

I have installed it through the Ubuntu virtual machine. The following is the installation:

Install eclipse

First, install eclipse, download the linux version of eclipse jee 3.5, and decompress it. You can set a shortcut (soft connection) for the eclipse command on the desktop ).

Install and set the Android sdk

Download and install the android sdk. Http://dl.google.com/android/android-sdk-linux_x86-1.5_r3.zip download path

Extract the downloaded file to the/opt directory, set the environment variable, and add a line through the/etc/profile file:

PATH = $ PATH:/opt/android-sdk-linux_x86-1.5_r3/tools/

In this case, if you connect the android device (t mobile g1 here) through:

Adb devices

The specified device cannot be found.

You need to use the udev mechanism provided by the linux2.6 kernel. Create a file:

Sudo gedit/etc/udev/rules. d/50-android.rules

Add:

SUBSYSTEM = "usb", SYSFS {"High Tech Computer Corp." }== "0bb4", MODE = "0666 ″

Then, execute the command to make it executable:

Chmod a + rx/etc/udev/rules. d/50-android.rules

After restarting the system, you can run the following command to view the connected Mobile phone device:

Adb devices

Or execute:

Ddms

The following are the screenshot capture functions of ddms and ddms:

Install adt plug-in

Use eclipse's help> install new software... The menu is installed online. The eclipse installation link of adt is:

Https://dl-ssl.google.com/android/eclipse/

After installation, you must set the android sdk path for the adt.

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.