| Start |
|---|
| How to log in ndk First make sure you link against the logging library in your Then use one of the following Or use those in a more convenient way by defining corresponding macros: Example: |
| Building native executables for Android project/jni/main.c project/jni/Android.mk project/jni/Application.mk If you want to support devices running Android versions lower than 5.0 (API 21), you need to compile your binary with
In the worst case, you will have both a PIE and a non-PIE binary for each architecture (about 14 different binaries using ndk-r10e). To build the executable: You will find the binaries at To determine the architecture of the CPU, retrieve the build property |
| How to clean the build If you need to clean the build: |
| How to use a makefile other than Android.mk ndk-build NDK_PROJECT_PATH=PROJECT_PATH APP_BUILD_SCRIPT=MyAndroid.mk |
Read Article
https://develop.horje.com/learn/1434/reference