How to Install Android NDK Ubuntu 17.04 Zesty Easy Guide

December 15, 2017 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Ubuntu 17.04 Install Android NDK

You are Welcome! The Tutorial Shows You Step-by-Step How to Install and Getting-Started with Android NDK Ubuntu 17.04 Zesty 32/64-bit GNU/Linux.

First, the Android NDK for Ubuntu 17.04 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 17.04 Zesty - 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 17.04 Zesty - Open Terminal
  2. Download Android Native Development Kit for Linux

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

    How to Install Android NDK Ubuntu 17.04 Zesty - 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.[X]*/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

Tags: , , , , , , ,