Build an Android development environment

Source: Internet
Author: User

Built on Android's underlying development environment, the environment mainly includes Android application development environment, Android NDK development Environment and cross-compilation environment.

The tools required for Android low-level development are: JDK6 or above, Eclipse3.4 or above; ADT (for developing Android apps); CDT (for developing Android NDK programs); Android Sdk;android NDK , cross-compiling environment, Linux kernel source code, Android source code, serial tool for debugging Development Board: minicom.

Steps to build the Android bottom-up development environment are as follows:

First, install the JDK

1. Download the JDK Compression Pack (tar.gz) from the official website and unzip it (http://www.oracle.com/technetwork/java/javase/downloads/index.html)

2. Enter the command under Linux Terminal (#gedit/etc/profile) to open the profile file to configure the PATH environment (export path=./developer/jdk6/bin: $PATH);

3. After saving the profile file, enter # Source/etc/profile or in the terminal. /etc/profile re-load the profile file.

Second, build Android application development platform

1. Install the Android SDK, download the Linux version of the Android SDK, find Android-sdk_ R16-linux.tar copy to a directory in the Linux file system and unzip and execute the Android script file under the Tools directory under that directory for Android SDK installation;

2. Install Eclipse, download the latest version of Eclipse for Linux and unzip it;

3. Install ADT, you can install the plug-in online, or you can download an offline installation file to install it, and configure the ADT configuration after installation so that ADT can find the Android SDK and create an AVD.

Third, install the Android NDK development environment

1. Download the latest Android NDK development package and unzip it, where the Ndk-build script file is used to compile the NDK program

2. Install the CDT, which is used to develop C + + program plug-ins;

3. command line to compile the Android NDK program;

4. Examples of importing Android NDK;

5. Configuring the Android NDK's integrated development environment is to modify the contents of the Gl_code.cpp file.

Iv. Installation of cross-compilation environment

Visit the Codesourcery download page via the website, download the latest version and install codesourcery via command # sh Package.bin.

Build an Android 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.