配置NDK环境

1 打开文件
open -e .bash_profile
2 输入

export NDK_ROOT=/Users/apple/Documents/androidsdk/sdk/ndk-bundle
export PATH=$PATH:$NDK_ROOT

3 保存
4 更新
source .bash_profile
5 输入命令

ndk-build

出现以下代码,ok,配置成功

Android NDK: Could not find application project directory !    
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.    
/Users/apple/Documents/androidsdk/sdk/ndk-bundle/build/core/build-local.mk:151: *** Android NDK: Aborting    .  Stop.

你可能感兴趣的:(android)