"Android Deep Exploration" (Vol. 1) HAL and Driver Development review:

Source: Internet
Author: User
Tags android sdk manager

Chapter II: Building Android Development Environment

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. For the development of the post-pave.

Andorra after access to information The main steps of environmental construction:

First, JDK

: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Current Latest Version: Jdk-8-linux-x64.tar.gz

After extracting using "TAR-ZXVF", assume the "/home/szyzln/jdk1.7.0_51" is extracted from the home directory.

1, sudo gedit/etc/profile

Export java_home=/home/szyzln/jdk1.8.0

Export JRE_HOME=/HOME/SZYZLN/JDK1.8.0/JRE

Export classpath=.: $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib

Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH: $HOME/bin

2, sudo gedit/etc/environment

Export java_home=/home/szyzln/jdk1.8.0

Export JRE_HOME=/HOME/SZYZLNJDK1.8.0/JRE

Export classpath=.: $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib

Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH: $HOME/bin

Second, the Android SDK

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

Official website translation: If You ' re a new Android developer, we recommend you download the ADT Bundle to quickly start developing apps. It includes the essential Android SDK components and a version of the Eclipse IDE with built-in ADT (Android Developer Tools) to streamline your Android app development.

With a single download, the ADT Bundle includes everything your need to begin developing apps:

    • Eclipse + ADT Plugin
    • Android SDK Tools
    • Android Platform-tools
    • The latest Android platform
    • The latest Android system image for the emulator

If you are an Android developer, we recommend that you download the ADT component package to quickly start developing software. It contains the Eclipse IDE (with ADT plugin, phone simulator) required for a complete development environment.

Once you download, you have all the tools you need to develop the following:

    • Eclipse + ADT Plugin
    • Android SDK Toolkit
    • Android Platform Toolkit
    • Latest Android Platform
    • Most-dressed Android system mirroring simulator

2, after decompression casually renamed as "Adteclipse", including "Eclipse", "SDK" two directories.

Run directly inside the "Adteclipse/eclipse/eclipse" can.

3. Eclipse is the official Google recommended tool. There is no need to install the standalone version on the website. The collaboration with the SDK in Eclipse is "SDK location" via the menu bar "Windows-prefercens-android".

4. Download more SDKs

The SDK in the previous download from the official website may contain only the latest 4.3. To develop other low versions, you need to download them through the windows-android SDK Manager. Tick "Android 2.3.3 (API10)" This is the most popular version. Note that you should never upgrade an installed package, or it might cause eclipse to be updated, and it will take a lot more time to upgrade. No need. We only guarantee to download and install the new development package here.

5. Create AVD Simulator

Menu "Windows------Android Virtual devier Manager". Click OK after configuration and click "Start" to run the simulator. If you click OK to not generate the emulator list, or do not run the emulator, try to create it using the command.

Command: #android list targets

#android Create Avd–n avdname–t 1

If the Windows operating system: CMD enters the tools directory of the Android SDK, execute: Android.bat AVD

6. Create a sample project

Third, install 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

Iv. Installation of cross-compilation environment

Http://www.cnblogs.com/Mr-zsj/p/5413596.html

"Android Deep Exploration" (Vol. 1) HAL and Driver Development review:

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.