ndk-build command not found in Ubuntu terminal

android, android-ndk, linux

Solution

Your PATH should include the root directory of your NDK:

export PATH=$PATH:/home/nespl/android-ndk-r8

instead of your current:

export PATH=$PATH:/home/nespl/android-ndk-r8/ndk-build

Problem

I have successfully generated .h file using javah, now i want to build my android-ndk hello world project. But it says command not found nespl@nespl-pc:~$ ndk-build ndk-build: command not found this is my path ``` nespl@nespl-pc:~$ echo $PATH /home/nespl/android-ndk-r8/ndk-build:/home/nespl/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/nespl/adt-bundle-linux-x86/sdk/tools:/home/nespl/adt-bundle-linux-x86/sdk/platform-tools:/home/nespl/gsutil ```

Original source

Related problems