Ubuntu10.04 build an android Development Environment

Source: Internet
Author: User

Ubuntu10.04 build an android Development Environment

 

Software Version:
Operating System: ubuntu10.04
Kernel version: Linux version 2.6.32-41-generic

Directory:
1. Introduction
2. Install JDK
3. Install eclipse
4. ADT Installation
5. SDK Installation
6. Create a small robot
7. References

1. Introduction

The development environment for building android on Ubuntu is similar to that for Windows. It is also required to install the JDK, eclipse and its plug-in ADT, And the android SDK.

2. Install JDK

The first is to download the JDK installation package in Linux environment,: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.html. It is worth noting that you should select a proper version. Do not select another system.

If it goes well, you will get a file named jdk-xxxx.bin. Put this file in the/usr/lib/JVM/directory. No JVM directory? Create it by yourself. Installation command:

sudo chmod +x jdk-xxxx.binsudo ./jdk-xxxx.bin

After entering enter on the terminal, the installation is complete. A directory named jdkxxx is generated under the/usr/lib/JVM directory.

The next step is to configure the environment. Open/etc/environment in the editor. Input:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/jdk1.6.0_30/bin"CLASSPATH=.://usr/lib/jvm/jdk1.6.0_30/libJAVA_HOME=/usr/lib/jvm/jdk1.6.0_30

Run source/etc/environment on the terminal or log on again. The test method is to enter Java-version on the terminal.

3. Install eclipse

Download the appropriate eclipse version from the http://www.eclipse.org/downloads. After decompression, you can use it directly.

4. ADT Installation

ADT is actually an Eclipse plug-in for Android development. Its full name is Android development tools. After eclipse is started, click eclipse ---> help ---> install new software ---> Add, The add repository dialog box appears, enter the URL https://dl-ssl.google.com/android/eclipse/ or http://dl-ssl.google.com/android/eclipse/ in the location column, you can obtain the Developer Tools installation package. Name depends on what it is. Select developer tools in the available software window. Then click Next to install.

5. SDK Installation

Follow the steps above to install the ADT successfully. A window will pop up prompting you to install the android SDK.

You can choose to install online or download the android SDK in http://developer.android.com/sdk/index.html. Select "use existing sdks" to find the SDK you downloaded.

If your eclipse does not have such a prompt, you can click eclipse ---> window ---> preferences, select "android" on the left, and select the SDK location as the android SDK decompression location. Then the application is OK.

6. Create a small robot

Click the robot on the left-hand side. In the displayed dialog box, click Android Virtual Device Manager, click New, and select the machine version from the target tag. Name is the name. Click Create AVD in the lower-right corner. Select the robot you just created and click Start .... OK.

7. References

Http://www.apkbus.com/android-43465-1-1.html.
Http://www.cnblogs.com/transmuse/archive/2011/02/11/1951412.html.
Http://hi.baidu.com/wuxiaoming1733/blog/item/6c14aeec4631b03027979111.html.

 

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.