Build andriod development environment

Source: Internet
Author: User

In the previous article, we summarized the Andriod system architecture and the key points of the system porting, in order to carry out the andriod system porting, we need to build the corresponding development environment, including: JDK, SDK (ADT), NDK (CDT) and Arm-linux cross-compilation environment. My platform is a Linux virtual machine background, the following are the detailed steps:

JDK Installation:

You can download the install and RECONFIGURE environment variables first, or execute the following code directly under Terminal:

# add-apt-respository "Deb Http://archive. Canonical. Com/lucid Partner "

# Apt-get Update

# Apt-get Install SUN-JAVA6-JDK

SDK Installation:

Download the Android SDK installation package, unzip, and run the andriod version download that you need to select your desired manager file. After the installation is successful, you only need to configure the environment variables and reload the profile.

All commands are as follows:

# Gedit/etc/profile

# Export Android_sdk_pat=/sdk/andriod/andriod-sdk-linux

# Export Path=. : $andriod_sdk_path/platform-tools:path

Sourse/etc/profile

Install Eclipse:

Note that eclipse for Linux is available. The download installation process is the same as installing QQ.

To install ADT:

ADT is an Eclipse plugin developed for andriod applications. You can download and then select Load in Eclipse and paste the package address load directly. After the installation is complete, configure the JDK installation address under the Andriod development package.

In this position: Eclipse->help->install the "add" in the text box behind "work with" under New software, this add can be either ADT or local software.

To configure the ADT process: Locate the Andriod node under Window->preference, and enter the SDK installation directory in the SDK location text box on its right.

Create AVD:

That is andriod virtual device, Android app run Simulator, directly in the Adt-eclipse "Andriod Virtual-devise-manager" can build a custom version of the Android simulator.

To install the NDK:

The same as the JDK installation, you also need to establish environment variables.

To install the CDT:

CDT is an Eclipse plug-in developed for C + + programs. Same as ADT loading mode.

Build cross-build environment:

Build success with Crosstool-ng. Of course, you can also use the Codesourcery Toolkit. After downloading the Codesourcery.bin file, open it with the command "# sh Package.bin" and then visually install it.

http://www.cnblogs.com/lv-peng/22:04:43 2016-05-02

Build andriod development environment

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.