Setting up the Android Native Development Kit (NDK)

The Android NDK environment is essential for native-code language development. Here, we will outline the setup steps for the Mac OS X platform again.

How to do it...

To install the Android NDK, follow these steps:

  1. Download the NDK installation package from the Android developer website at http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin.
  2. Move the setup file into the same installation folder:
    mv android-ndk-r10e-darwin-x86_64.bin 3rd_party/android 
  3. Set the permission of the file to be an executable:
    cd 3rd_party/android && chmod +x android-ndk-r10e-darwin-x86_64.bin
  4. Run the NDK installation package:
    ./android-ndk-r10e-darwin-x86_64.bin
  5. The installation process is fully automated and the following output confirms the successful installation of the Android NDK:
    ...
    Extracting  android-ndk-r10e/build/tools
    Extracting  android-ndk-r10e/build/gmsl
    Extracting  android-ndk-r10e/build/core
    Extracting  android-ndk-r10e/build/awk
    Extracting  android-ndk-r10e/build
    Extracting  android-ndk-r10e
    
    Everything is Ok

See also

To install the Android NDK on Linux or Windows, download the corresponding installation files and follow the instructions on the Android developer website at https://developer.android.com/tools/sdk/ndk/index.html.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.251.154