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
- 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
- Install Eclipse
After downloading the file, unzip it, then click on the eclipse executable file
- Installing ADT
Divided into online installation and offline installation, again introduced offline installation:
Download the offline installation package first, then install it
- Configuring ADT
WINDOW>PREFERENCES>ANDROID>SDK location-> Enter the android SDK installation directory, save it
- Create AVD
New in Android Virtual Device Manager
L Install Android NDK development environment
- Download Android NDK, unzip, generate Ndk-build script file to compile NDK program and add its installation directory to environment variables
- Install CDT, download the offline installation package, unzip the installation, similar to ADT
- 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
- Compiling files
- In the incoming Android device file
- Go to the Android console and execute this file
Android Deep Exploration (Vol. 1) HAL and Driver Development--Reading notes (chapter II)