Chapter II Building an Android development environment

Source: Internet
Author: User

Chapter II

This chapter is mainly about Android applications, Android NDK programs, cross-compilation method, but must be Android applications and the Android NDK program to test the Linux driver, so not only need to configure the Linux-driven development environment, You also need to configure the first two development environments.

2.2 Installing the JDK

is a Java development tool, but also an essential tool for Android, common installation methods:

1. Download the JDK from the official website first

2. Unzip it (can be extracted to any directory)

3. Enter getit/etc/profile under Linux terminal to open the profile file

4. Configure the PATH environment variable export path=.:/ installation directory/bin: $PATH

5. After saving profile, enter Source/etc/profile or. /etc/profile Reload the file

Finally, look at the environment variable values through the Echo $PATH

2.3 Build Android App development environment

There are five big steps

1. Install the Android SDK: after downloading the Android SDK, install the SDK with the # TAR-XVF SDK file name (executed in the directory where the files are located), and configure the PATH environment variable as in the next three steps in the 2.2.

2. Install Eclipse

3. Install ADT: (the plug-in for the eclipse that is used to develop Android applications) there are two ways to install online and install offline

4. Configure ADT: The main purpose is to enable ADT to find the Android SDK

5. Create AVD (Android Virtual Device)

2.4 Installing the Android NDK development environment

Prerequisite: The Android SDK must be installed before you can install the Android NDk

1. Download and install the Android NDK:

2. Installing the CDT

3. Configure the Android NDK integration environment

2.5 Installing the cross-compilation environment

Two methods: (a) from the Internet to find an integrated cross-compilation environment, and then directly download, installation can

(b) You can also choose a CD-ROM on the book or a cross-compilation environment in a simulated environment also for my convenience need to configure the cross-compilation environment in the PATH environment variable

Chapter II Building 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.