下载地址:https://dl.google.com/android/repository/android-ndk-r21b-linux-x86_64.zip
1.下载
wget https://dl.google.com/android/repository/android-ndk-r21b-linux-x86_64.zip
2.解压
unzip android-ndk-r21b-linux-x86_64.zip
3.环境路径配置
export NDK=/home/lyc/android-ndk-r21b
export PATH=${NDK}:${PATH}
export NDK_PROJECT_PATH=${NDK}
4.验证安装
./android-ndk-r21b/ndk-build
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: /home/lyc/android-ndk-r21b/jni/Android.mk
/home/lyc/android-ndk-r21b/build/core/add-application.mk:88: *** Android NDK: Aborting... . Stop.