How-to Install Android NDK Development Kit on CentOS 6/7 32-64bit Linux Easy Guide

August 4th, 2014 by thelinuxevangelist

Install Android NDK on CentOS Linux



The Linux Tutorial Shows You Step-by-Step How-to Install the Android Native Development Kit on CentOS 6/7 i686/x8664 Linux Gnome/KDE Desktop.

The NDK is a toolset that allows you to implement parts of your app using native-code languages such as C and C++.

Android Development Require Oracle Java JDK 6+ so I have Included Link to How-to Install Oracle JDK on CentOS Linux.

The Android NDK Installation for CentOS Linux Require also the Android SDK so You will Find also Link to Download the Needed Android SDK for CentOS.

Install Android NDK on CentOS Linux - Featured
  1. Open Terminal Window
    (Press “Enter” to Execute Commands)

     - KDE4 Open Terminal
  2. Download Android Native Development Kit for Linux:

    Get Android NDK Linux 32/64bit

  3. Double-Click or Right-Click on Archive and Extract into /tmp

    Install Android NDK on CentOS Linux - Android NDK Extraction
    Or from Command Line:

    tar xvf android-ndk*.tar.bz2 -C /tmp

  4. Relocate Android NDK Folder
    sudo chown -R root:root /tmp/android-ndk*
    sudo mv /tmp/android-ndk* /opt

    If Got “User is Not in Sudoers file” then Look: Solution

  5. Set Up ANDROID_NDK Environment Variable
    nano ~/.bashrc

    Example Append (Following your NDK Installation Location):

    export ANDROID_NDK=/opt/android-ndk*
    export PATH=$PATH:$ANDROID_NDK

    Ctrl+x to Save & Exit from nano Editor.

  6. Install Required Android SDK Tools Only for CentOS:

    Install Android SDK on CentOS

  7. Set Up ANDROID_SDK Environment Variable
    nano ~/.bashrc

    Example Append (Following your SDK Installation Location):

    export ANDROID_SDK=/opt/android-sdk-linux
    export PATH=$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools

    Ctrl+x to Save & Exit from nano Editor.

  8. How-to Install Recommended Oracle Java JDK on CentOS:

    Install Oracle JDK 6/7/8 for CentOS
  9. Set Up JDK_PATH Environment Variable
    nano ~/.bashrc

    Example Append (Following your JDK Installation Location):

    export JDK_PATH=/usr/lib/jvm/jdk1.7*/bin
    export PATH=$PATH:$JDK_PATH

    Ctrl+x to Save & Exit from nano Editor.

  10. Getting-Started with Android NDK on Eclipse:

    Eclipse Android NDK Integration
Share on Tumblr

Tags: , , , , , , , , , , , , ,


Comments are disabled