Android Deep Exploration-Volume 1 chapter II

Source: Internet
Author: User

This chapter mainly describes how to build an environment for Android's underlying development, including the Android application development environment, the Android NDK development environment, and the build-up of a cross-compilation environment.

Tools needed to develop, test, and debug Linux drivers, HAL libraries: Jdk6 or later, eclipse3.4 or above ADT, CDT, Android SDK, Android NDK, cross-build environment, Linux kernel source code, Android source code, the serial tool for debugging the Development Board: Minicom.

Installing the JDK

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

2. Unzip (can be extracted to any directory)

3 Open: Enter command under Linux terminal (#gedit/etc/profile) to open the profile file

4. Configure the PATH environment variable (export path=./developer/jdk6/bin: $PATH)

5. Save

6. Overloading

Ubuntu Linux provides an easier way to install the JDK, and under the Linux terminal the following command can be installed automatically JDK6 (Internet connection required during command execution)

#add-apt-repository "Deb Http://archive.canonical.com/lucid partner"

#apt-get Update

#apt-get Install SUN-JAVA6-JDK

Installing the Android SDK

1,: http://developer.android.com/sdk/index.html

2, download the SDK, get Android-sdk_r16_linux.tar file

3, copy to a directory in the Linux file system, and then enter the directory and unzip the Linux terminal

4, after the decompression directory more than a android-sdk-linux directory, into the Android-sdk-linux/tools directory, there is an Android script file execution script file.

Install Eclipse

Installing ADT

Configuring ADT

Create AVD

Installing the Android NDK development environment

1. Download Android NDK

2. Installing the CDT

3. Command-line compiling Android NDK program

4. Examples of importing Android NDK

5. Configure the Android NDK integrated development environment

Installing the cross-compilation environment

Android Deep Exploration-Volume 1 chapter II

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.