Android Deep Explore second chapter

Source: Internet
Author: User

Chapter II Building an Android Development Environment

Android Low-level development environment, mainly include:android application development environment,android NDK development environment and build cross-compilation environment.

   android Application development environment: First step: Install jdk windows on JDK Fourth step: Download and install ANDROID SDK  eclipse install adt plugin.

  A, android Bottom development requires a certain tool: jdk6 cross-compilation environment eclipse3.4linux kernel source cdt android sdk , android ndk , cross-compilation environment, linux kernel source code, Span style= "FONT-FAMILY:CALIBRI;" >android source code, debug serial port Development Board tools and so on.

Second, install the JDK:

Method One:

Download the JDK from the official website and configure it, then open the profile file in the terminal to set the PATH environment variable (# Soure/ Etc/profile), after opening The profile file, enter the following content

Export path=.:d Eveloper/jdk6/bin: $PATH

After you save the profile file, there are two ways to reload the profile file.

1.# Sourse/etc/profile

2.#. /etc/profile

The second method is more convenient to perform the following command under Linux terminal to install JDK6 automatically.

# add-apt-repository "Deb Http://archive.cannonical.com/lucid Partner

# Apt-get Update

# Apt-get Install SUN-JAVA6-JDK

This method does not need to be configured for PATH .

Third, buildAndroidApplication development environment:InstallationAndroid NDKDevelopment Environment: DownloadAndroid NDK, installationCDT, command-mode compilationAndroid NDKprograms, importingAndroid NDKThe example, configurationAndroid NDKintegrated development environment. InstallationAndroid SDK, installationEclipse, installationADT, ConfigurationADT, establishAVD.

Four, install android ndk development environment: download android ndk , install Span style= "FONT-FAMILY:CALIBRI;" >CDT android ndk program, import android ndk Span style= "font-family: the song Body;" > example, configuring android ndk Integrated development environment.

Install the cross-compilation environment: The CPU of the X86 architecture uses a complex instruction set computer, and the arm architecture CPU Using a thin instruction set computer, since the CPUs of both architectures use different instruction sets, development on the X86 architecture can be run on arm A program on the schema must use a cross compiler and related tools that contain many executables and resources such as a large number of shared libraries and header files, which are a cross-compiled environment. the cross-compilation environment can also be downloaded directly using the already configured cross-compilation environment.

Android Deep Explore second chapter

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.