Build an android development environment in Linux

Source: Internet
Author: User

Android development in Linux is fast, the development environment is comfortable, eclipse is fast, the simulator is fast, and the vim editor can be used.

The following describes how to build the development environment (y450, deepin Linux 11.06)

There are three steps:

1. Install JDK

2. Install the android SDK

3. Install eclipse and plug-in ADT

 

1. Install JDK

Download the latest JDK version, the current version is jdk-7u3-linux-i586.tar.gz, see Oracle Official Website

Decompress the tar-xzvf jdk-7u3-linux-i586.tar.gz directly to get the jdk1.7.0 _ 03 folder.

Configure environment variables in the/etc/profile file

Export java_home =/home/xiaoch05/software/tools/jdk1.7.0 _ 03

Export Path = $ java_home/bin: $ path

Export classpath =.

If you want to make the configuration take effect immediately, use the command

Source/etc/profile

Otherwise, it must be restarted or canceled.

Now that JDK has been installed, enter Java-version on the terminal to check whether the environment variable configuration is correct.

 

Ii. Install the SDK

(1) download the latest SDK, is currently a android-sdk_r16-linux.tgz,

(2) decompress the tar-xzvf android-sdk_r16-linux.tgz and find the tool directory of the decompressed File

(3) execute the android file and run it on the terminal. Note that the SDK must be installed and configured.

Select All sdks of version 1.6 and later, and download and install them (connect to the Internet)

(4) and so on ......,

It may take about 4-5 hours (200 K/s) to enter the account password of the motorcycle and HTC. You only need to complete the registration as required.

Configure environment variables after installation

/Home/xiaoch05/software/tools/Android-SDK-Linux: Path to path

 

3. Install eclipse and ADT

Which of the following is the latest eclipse-sdk-3.7.2-linux-gtk.tar.gz

If the old version is earlier than 3.6, the ADT plug-in installation error message is displayed.

Decompress the package to run eclipse.

Help-> install new software to install the ADT plug-in. The local address can be found on the official website of the android development platform.

Http://developer.android.com/

The current address is

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

If the network fails, you can download the compressed package to the ADT-16.0.1.zip, you do not need to extract it in archive select it to install it

Restart eclipse after installation.

Take a look at the screen after the installation:

 

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.