How to Install Android NDK Linux Mint 19 Easy Guide

August 16, 2018 | By thelinuxevangelist | Filed in: Tutorial.

Android NDK Linux Mint 19 Installation Guide

Hello Mint User! The Tutorial Shows You Step-by-Step How-to Install Android NDK Linux Mint 19.x Tara LTS 32/64-bit 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 Mint Linux.

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

How-to Install Android NDK Linux Mint 19 - Featured
  1. Open a Shell Terminal emulator window
    (Press “Enter” to Execute Commands)

    How-to Install Android NDK Linux Mint 19 - 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 Linux Mint 19 - Extraction
  4. After Relocate the Android NDK Folder
    First Set the SuperUser as Owner with:

    sudo chown -R root:root /tmp/android-ndk*

    And then Switch Contents:

    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 Mint:

    Install Android SDK for Mint
  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 Mint:

    Install Oracle JDK for Mint
  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
    

    Just Change the [X] following the Installed JDK Release!
    Load the New Environment Variables simply with:

    bash

  10. Getting-Started with Android NDK on Eclipse:

    Eclipse Android NDK Integration

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