Android Deep Exploration (Vol. 1) HAL and Driver Development--Reading notes (chapter II)

Source: Internet
Author: User

Steps to build an Android bottom-up development environment

• Installing the JDK:
1. Download JDK, unzip, open profile set PATH environment variable

2. #gedit/etc/profile

Export path=.:/ Developer/jdk6/bin: $PATH

3. #source/etc/profile

# . /etc/profile

Note: The values of environment variables can be viewed through the Echo $PATH

L Build an Android application development environment

    1. Installing the Android SDK

First download the SDK, and then copy the package file to the Linux directory and unzip it.

Enter the Android-sdk-linux/tools directory and execute the Android script to enter the installation interface.

After installation, configure the environment variables for platform-tools and tools, enter profile, add

#export Android_sdk_path=/sdk/android/android-sdk-linux

#export path=.: $ANDROID _sdk_path/platform-tools: $PATH

Then the profile can be executed

    1. Install Eclipse

After downloading the file, unzip it, then click on the eclipse executable file

    1. Installing ADT

Divided into online installation and offline installation, again introduced offline installation:

Download the offline installation package first, then install it

    1. Configuring ADT

WINDOW>PREFERENCES>ANDROID>SDK location-> Enter the android SDK installation directory, save it

    1. Create AVD

New in Android Virtual Device Manager

L Install Android NDK development environment

    1. Download Android NDK, unzip, generate Ndk-build script file to compile NDK program and add its installation directory to environment variables
    2. Install CDT, download the offline installation package, unzip the installation, similar to ADT
    3. Configuring an integrated development environment for the Android NDK

Properties>builders>new>choose Configurationtype>program

Set Main, Refresh, Builder options, and more

L Install cross-compilation environment

First to download Codesourcery

# SH Package.binà installation Codesourcery

Put it in an environment variable/root/compilers/codesourcery/sourcery_codebench_lite_for_arm

-gnu_linux/bin

Note: How to use

      1. Compiling files
      2. In the incoming Android device file
      3. Go to the Android console and execute this file

Android Deep Exploration (Vol. 1) HAL and Driver Development--Reading notes (chapter II)

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.