This chapter mainly describes how to build an environment for Android's underlying development, including the Android application development environment, and the build-up of a cross-compilation environment.
The tools you need to develop, test, and debug Linux drivers, HAL libraries include:
1. JDK6 or later
2. Eclipse3.4 or later
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. For debugging Development Board and Serial port tool: Minicom
Configuration of the Android development environment in the Ubuntu Linux environment
1. Installing the JDK
The JDK is the Java language Software Development Toolkit for Java applications on mobile devices and embedded devices.
2. Install Android SDKF
The platforms directory stores the Android SDK resources associated with each version, and each Android SDK version is stored in a separate directory.
The Platform-tools and tools directories contain commonly used tools.
3. Install Eclipse
Eclipse is an open-source, Java-based, extensible development platform. For its part, it is just a framework and a set of services for building a development environment through plug-in components.
4. Installing ADT
ADT (Android development tools) requires the installation of ADT (Android Developer Tools) plug-in in an eclipse-compiled IDE environment, which is the development tool for Android on Eclipse.
5. Configuring ADT
Open Eclipse, click the Windows Preferences menu item, click Android, enter the Android SDK installation directory in the SDK location text box, click Apple, and click OK.
6. Create AVD
The full name of the AVD is Android virtual device, which is an Android-run emulator that is recognized as an Android simulator. To build the Android to run, the AVD must be created, and a lot of running projects can be configured on each AVD.
7. Installing the CDT
The CDT is a plug-in for developing a/C + + program in Eclipse.
8. Compiling Android NDK Program
The NDK includes the tools and build files needed to generate a native code base from C + +, embed a consistent native repository in an application package file that can be deployed on Android devices, and support a range of native system header files and libraries for all future Android platforms
9. Configuring the Android NDK Environment
10. Installing the cross-compilation environment
Android Deep Exploration Chapter II experience