Android NDK project structure (observed in Eclipse environment), androidndk
Android projects with native components contain a set of additional directories and files.
Jni: This directory contains the source code of the native component and the Android. mk build file that describes the native component build method.
The Android NDK build system uses this directory as the NDK project directory and wants to find it in the project root directory.
Libs: Create this directory during the creation of the Android NDK build system.
It contains independent sub-directories of the specified target machine architecture, such as armeabi of ARM. This directory is included in the APK file during packaging.
Obj: This is an intermediate directory. The target files generated after the source code is compiled are stored in this directory. Developers are advised not to access this directory.
The most important component of the Android NDK project is the Android. mk build file, which describes the native components. Understanding the building system is the key to mastering the use of Android NDK and all its components.