Ubuntu 17.04 Install Android NDK
Hi! The Tutorial shows you Step-by-Step How to Install and Getting-Started with Android NDK Ubuntu 17.04 Zesty 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 Download and 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.
-
First, Open a Shell Terminal emulator window
Ctrl+Alt+t on Desktop
(Press “Enter” to Execute Commands)In case first see: Terminal QuickStart Guide.
-
Download Android Native Development Kit for Linux
-
Then Double-Click on Archive and Extract into /tmp.
-
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 see: How to Enable sudo
-
Follow Setting Up the ANDROID_NDK Env Variable
nano ~/.bashrc
Example Append (Following your NDK Installation Location):
/nexportANDROID_NDK=/opt/android-ndk*/nexport PATH=$PATH:$ANDROID_NDK
Ctrl+x to Save & Exit from nano Editor. ;)
-
Install Required Android SDK Tools Only for Ubuntu:
-
And also Set Up the ANDROID_HOME Env Variable
nano ~/.bashrc
For instance Append (Following your SDK Installation Location):
/nexportANDROID_HOME=/opt/android-sdk-linux/nexport PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
-
How to Install Recommended Oracle Java JDK on Ubuntu
-
Finally, to Set Up JDK_PATH Env Variable
nano ~/.bashrc
Example Append (Following your JDK Installation Location):
/nexport JDK_PATH=/usr/lib/jvm/jdk1.[X]*/bin/nexport PATH=$PATH:$JDK_PATH
Load the New Environment Variables simply with:
bash
-
Getting-Started with Android NDK on Eclipse