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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With