Here comes my environment variable setting in (.bashrc)..
export ANDROID_SDK="/AndroidSDK/android-sdks"
export ANDROID_NDK="/AndroidNDK/android-ndk-r8d"
export PATH="$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools:$ANDROIDNDK"
when i try to run ndk-build on ternimal it display error message saying
-bash: ndk-build: command not found
i am just try to build San Angeles sample example in ndk directory.
go to Android Studio-> Tools -> SDK ManagerUnder SDK tools tab uncheck "NDK", "CMake", "LLDB" and then apply changes. NDK components will be removed.
Because you are supplying wrong value in PATH
variable, you have declared ANDROID_NDK
as Environment
, and in PATH
variable you are adding ANDROIDNDK
( you are missing _
under score. )
Please edit your lines as below,
export ANDROID_SDK="/AndroidSDK/android-sdks"
export ANDROID_NDK="/AndroidNDK/android-ndk-r8d"
export PATH="$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools:$ANDROID_NDK"
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