当前位置: 首页 > 工具软件 > 21-points > 使用案例 >

下载安装配置Android NDK21最新稳定版本-基于ubuntu18-linux

公羊安怡
2023-12-01

下载地址: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.

 

 类似资料: