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:
- PATH=$PATH:/opt/android-sdk-linux_x86-1.5_r3/tools/
-
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:
- 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:
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.