Step-by-step – Android NDK Installation in Ubuntu 20.04 Guide

April 28, 2020 | By the+gnu+linux+evangelist.

GNU/Linux Ubuntu 20.04 Installing Android NDK – QuickStart Guide

Hi! The Tutorial shows you Step-by-Step How to Install Android Native Development Kit in Ubuntu 20.04 Focal LTS 64-bit GNU/Linux Desktop.

And the Android NDK for Ubuntu Focal 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 a Link to Oracle JDK Ubuntu Installation Guide.

Moreover, the Android NDK Setup Require also the Android SDK so you will Find also detailed instructions to Install it on Ubuntu.

Finally, you find Guide to Getting Started with NDK Development on Eclipse IDE.

How to Install Android NDK Development Kit on Ubuntu 20.04 Focal - Featured
  1. 1. Launching Terminal

    Open Terminal Window
    Ctrl+Alt+t on Desktop
    (Press “Enter” to Execute Commands).

    How to Install Android NDK Development Kit on Ubuntu 20.04 Focal - Open Terminal
    In case first see: Terminal QuickStart Guide.
  2. 2. Installing Android SDK

    Install Required Android SDK Tools Only for Ubuntu

    But if you Prefeer instead Install Android Studio IDE that includes the Tools…

  3. 3. Setting Up SDK Env

    Provide also to Set Up ANDROID_HOME Environment Variable
    Editing the Bash Config User’s File:

    nano ~/.bashrc

    Example Append (Following your SDK Installation Location):

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

    So you may Replace the ANDROID_HOME Path with your’ actual one…
    Ctrl+x to Save & Exit from nano Editor.

  4. 4. Installing JDK

    How to Install Required Oracle Java JDK on Ubuntu

    Install Oracle JDK for Ubuntu
  5. 5. Setting Up JDK Env

    And Set Up JDK_PATH Environment Variable
    Again Editing the Configuration File with:

    nano ~/.bashrc

    Example Append (Following your JDK Installation Location):

    export JDK_PATH=/usr/lib/jvm/jdk1.[X]*/bin/nexport PATH=$PATH:$JDK_PATH
    

    So again here you may need to Replace the JDK_PATH with your actual one.


QuickChic Theme • Powered by WordPress