Create an Eclipse Android development environment under Ubuntu

Source: Internet
Author: User

Most Android Developers use Eclipse to develop Android. This article will introduce how to build an Eclipse-based Android development environment in Ubuntu.

First of all, I have installed it through the Ubuntu virtual machine. The following is the installation:


Install Ubuntu Virtual Machine

Install Eclipse

First, install Eclipse, download the linux version of Eclipse jee 3.5, and decompress it. You can set a 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:

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

In this case, if I connect the Android device t mobile g1:

Adb devices cannot find the device.

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

 
 
  1. sudo gedit /etc/udev/rules.d/50-android.rules  
  2.  

Add:

 
 
  1. SUBSYSTEM==”usb”, SYSFS{“High Tech Computer Corp.“}==”0bb4″, MODE=”0666″  
  2.  

Then, execute the command to make it executable:

 
 
  1. chmod a+rx /etc/udev/rules.d/50-Android.rules  
  2.  

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:


For the screen capture function 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.