1.mac下的环境
1.再终端输入 open .bash_profile 就打开了 mac 的脚本配置
2. 插入如下一句
export NDK_ROOT=/Applications/XAMPP/xamppfiles/htdocs/client/native/cocos2d-x-3.0alpha0
再执行其他脚本的时候 如 ./build_native.sh 。先搜索自己脚本里对应NDK_ROOT 变量的地址如果没有再去bash_profile 里搜索
NDK_ROOT="/Users/admin/Documents/work/android/android-ndk-r8e"