Chapter II: The second chapter builds the Android development environment

Source: Internet
Author: User

    Chapter II: Building an Android Development Environment

What tools are needed for Android bottom-up development:

· JDK6 or the above version;

· Eclipse3.4 or the above version;

· ADT (for development Android applications);

· CDT (for development Android NDK procedures);

· Android SDK ;

· Android NDK ;

• Cross-compiling environment;

· Linux kernel source code;

· Android source code;

• Serial tool for debugging the Development Board:minicom.

Build an Android development environment:

(i) Installing the JDK:

Download the JDK 's tarball directly and unzip it, then enter it on the Linux terminal

# Getit/etc/profile

After you open the profile file, in the terminal input

Export path=.:/ (file compression directory) /bin: $PATH

After You save the profile file, enter it in the Linux terminal

# . /etc/profile

(ii) build an Android application development environment

1. Install Android SDK: Download Android SDK, get a tar file, After the terminal enters this directory, execute the command:

#tar-XVF Android-sdk+r16-linux.tar

2. Install Eclipse

#tar ZXVF Eclipse-sdk-3.7.1-win32-x86_64.zip

3. installing ADT

4. Configuring ADT

5. creating an AVD

(iii) installation of the Android NDK development environment:

1. Download Android NDK

#tar-XVF Android-ndk-r7-linux-x86.tar.tar

2. installing the CDT

3. command-line compiling Android NDK program

Ndk-build Command

4. examples of importing Android NDK

5. Configure the Android NDK integrated development Environment

(iv) Installation of cross-compilation environments

The CPU of the X86 architecture employs a complex instruction set computer. the CPU of the ARM architecture uses a thin instruction set computer. Since the CPUs of both architectures use different instruction sets, developing on the X86 architecture can be run on ARM A program on the schema must use a cross-compiler. Usually the cross compiler and related tools contain many executables and resources such as a large number of shared libraries and header files, a collection of which is called a cross-compilation environment.

Chapter II: The second chapter builds the 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.