Build an android development environment in Linux

Source: Internet
Author: User

Why should we build a development environment in Linux? The android virtual machine runs faster in Linux and has more stable performance.

My Linux environment isUbuntu-10.10-desktop-i386. Software to be prepared before installation:

1. JDK (jdk-6u27-linux-i586.bin)

2. androidsdk (android-sdk_r12-linux_x86)

3. eclipse(eclipse-sdk-3.7-linux-gtk.tar.gz)


Create an android user in Linux to manage the android development environment.Copy the prepared software/Home/androidDirectory, let's start building the environment!

1. Install JDK. Eclipse and androidsdk depend on the JDK environment to ensure that the working directory is/home/android.

1. Add executable permissions to the jdk-6u27-linux-1586.binChmod U + x jdk-6u27-linux-1586.bin

2. Use/Jdk-6u27-linux-1586.bin

3. Configure the environment variables. in Linux, modify the/etc/profile file and useSudo VI/etc/profile

After modification, the environment variable does not take effect immediately. You need to restart or useSource/etc/profileMake it take effect, and finally useJava-versionVerify that JDK is successfully installed



Ii. Install androidsdk

1. Extract,Tar-zxvf android-sdk_r12-linux_x86.tgz

2. UseAndroid-sdk-linux_x86/tools/androidRun Android SDK and AVD manager, click avaliable packages, select the desired version, and click Install selected to install it. After installation, click virtual delives to create an android virtual machine.


3. Install ipvs

1. decompress, tar-zxvf eclipse-SDK-3.7-linux-gtk.tar.gz

2. Go to the installation directory and directly run eclipse

3. Install the ADT plug-in, help-> install new software...-> at work with: Enter


Follow the prompts to complete the installation

4. Set SDK location.



4. Compile helloworld, run as-> Android Application

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: 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.