How-to Install Android NDK Ubuntu 16.04 Easy Guide

June 19th, 2017 by thelinuxevangelist

Android NDK Ubuntu 16.04 Quick-Start




Hello Ubuntu User! This Tutorial Shows You Step-by-Step How-to Install Android NDK Ubuntu 16.04 Xenial Xerus LTS 32/64bit GNU/Linux.

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

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

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

How-to Install Android NDK Ubuntu 16.04 - Featured
  1. First Open a Shell Terminal emulator window
    Ctrl+Alt+t on Desktop
    (Press “Enter” to Execute Commands)

    How-to Install Android NDK Ubuntu 16.04 - Open Terminal
  2. Download Android Native Development Kit for Linux:

    Get Android NDK Linux 32/64bit
  3. Then Double-Click on Archive and Extract into /tmp

    How-to Install Android NDK Ubuntu 16.04 - Extraction
  4. After Relocate the 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. Follow Setting Up the ANDROID_NDK Env 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 Ubuntu:

    Install Android SDK for Ubuntu
  7. And also Set Up the ANDROID_SDK Env Variable
    nano ~/.bashrc

    For instance Append (Following your SDK Installation Location):

    	export 	ANDROID_SDK=/opt/android-sdk-linux
    	export PATH=$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools
    
  8. How-to Install Recommended Oracle Java JDK on Ubuntu:

    Install Oracle JDK for Ubuntu
  9. Finally to Set Up JDK_PATH Env Variable
    nano ~/.bashrc

    Example Append (Following your JDK Installation Location):

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

    Load the New Environment Variables simply with:

    bash
  10. Getting-Started with Android NDK on Eclipse:

    Eclipse Android NDK Integration
(Visited 99 times, 2 visits today)

Tags: , , ,


Comments are disabled