1: Install JDK
The JDK (Java Development Kit) is the Java Language Software Development Kit (SDK). Java programs cannot be compiled without a JDK.
2: Install Android SDK
The Android SDK refers to the Android-specific software development kit.
3: Install Android NDK
The Android NDK was added in front of the SDK with the word "native", the native development Kit, which Google called the "NDK".
As is known to all, Android programs run in Dalvik virtual machines, and the NDK allows users to execute part of the program using native code languages like C + +.
The NDK includes:
- The tools and build files required to generate the native code base from C + +.
- Embed a consistent native library into the application package files that you can deploy on your Android device (application packages files, the. apk file).
- Support for all future Android platforms with some column native system header files and libraries
Why use the NDK?
Broadly speaking, it is mainly divided into the following situations:
1. Protection of the code, because the Java layer Code of the APK is easy to decompile, and the C + + library is difficult to reverse the sink.
2. Call the third-party C/S library in the NDK, because most of the open source libraries are written in C/s code.
3. Easy to transplant, the library written in C + + can be reused on other embedded platforms.
4: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. Fortunately, Eclipse comes with a standard set of plugins, including Java development tools (Java Development kit,jdk).
5:CDT, ADT Plug-ins
CDT General Eclipse comes with it.
Using Eclipse for Android app development requires an ADT plugin for Eclipse, so eclipse can connect to the Android SDK. Easy to create, edit, and debug Android programs in the Eclipse development environment.
6: Create Android Virtual Device
Android Virtual Device Manager tools are available in the Android SDK to make it easy to run Android programs in environments that don't have a real Android device.
Android Program Analysis Environment (build step slightly)