Installing NDK
-
6. Downloading
Download Android Native Development Kit for Linux
Here Android NDK Linux 64-bit .zipLink to Download Latest Android Native Development Kit for GNU/Linux .tar.bz2 Archive -
7. Extracting
Then Extract into /tmp
Possibly, Double-Click or Right-Click and Open with Archive Manager:Or from Command Line:
Copytar xvf android-ndk*.tar.bz2 -C /tmp
-
8. Installing
Now to Install Android NDK
First, Set the SuperUser as Owner with:Copysudo chown -R root:root /tmp/android-ndk*
And then Relocate Android NDK Folder:
Copysudo mv /tmp/android-ndk* /opt
If Got “User is Not in Sudoers file” then see: How to Enable sudo
-
9. Setting Up ANDROID_NDK Env
Finally, Set Up ANDROID_NDK Environment Variable
Again Editing the same File:Copynano ~/.bashrc
So as in our Setup, Append:
CopyexportANDROID_NDK=/opt/android-ndk* export PATH=$PATH:$ANDROID_NDK
Contents