2 Build Android development environment

Source: Internet
Author: User

This chapter is mainly about how to build an Android development environment, the tools you need to prepare are:

(1) version JDK6 or above;

(2) Eclipse

(3) ADT (for developing Android apps)

(4) CDT (for developing Android NDK programs)

(5) Android SDK

(6) Android NDK

(7) Cross-compilation environment

(8) Linux kernel source code

(9) Android source code

(10) Serial tool for debugging the Development Board: minicom

1, before installing all the software, to first clear their own system of the number of bits, you can through the "getconf long_bit" command, the Linux system is how many bits, and then to the official website to download the corresponding number of software;

2, decompression of several cases:

(1). gz:tar–xvzf file name

(2). TAR.BZ2: First unzip the file into a. tar suffix file with bzip2–d, then unzip it with TAR–XVF;

(3). zip: Extract with command unzip;

3, install JDK: first to download the JDK Linux version of the official website, after the download is complete, use the "tar" command to extract it, after decompression, we need to install, in fact, after the decompression can be said to have been installed (do not need to like in Windows System, click Install), we only need Configuring environment variables is fine; Configuring an environment variable requires modifying the "/etc/profile" file, declaring the path first, then introducing the path with "export", and finally using "source/etc/profile" to make the configured environment variable take effect;

4, the installation of Eclipse: first to the official website to download the corresponding version of Eclipse, decompression, in the Extract directory will have a name of Eclipse executable file, we directly directly this file, you can run eclipse;

5, Android SDK, NDK installation and configuration of the same as the JDK;

6, ADT Installation: First download the ADT version, and then need to add this plug-in eclipse (and the same as the configuration under Windows), the process of establishing an AVD is the same as under Windows;

7, the CDT is installed in the same manner as ADT;

8, using the command ndk-build can compile the Android NDK source code;

9, if you modify the. cpp file, you still need to manually compile the NDK program on the Linux terminal, and need to refresh the project, and finally recompile the project, to generate the APK file for the changes to take effect, in order to avoid these troublesome steps, you can configure the Android NDK integrated development environment, the specific steps in The book P22;

10. Install the cross-compilation environment: Because the CPU of the X86 architecture and the CPU of the ARM architecture adopt different instruction sets, it is necessary to use a cross-compiler to develop a program on the X86 architecture that can run on the ARM architecture;

11, cross-compiler and related tools contain a lot of executable files and a large number of shared libraries and header files and other resources, the collection of these resources is called cross-compilation environment;

2 Build 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.