首先,在Mac下面相关软件路径,打开“终端”,然后输入 pico .bash_profile 回车
export COCOS2DX_ROOT=/Users/bpmacmini01/Documents/cocos2d-2.1rc0-x-2.1.2/ export NDK_ROOT=/Users/bpmacmini01/Documents/AndroidDevelop/ndk-r9d export ANDROID_NDK_ROOT=/Users/bpmacmini01/Documents/AndroidDevelop/ndk-r9d export ANDROID_SDK_ROOT=/Applications/adt/sdk export PATH=$ANDROID_NDK_ROOT:$PATH export PATH=$ANDROID_SDK_ROOT:$PATH
cd /Applications/adt/sdk/platform-tools
./adb logcat | ndk-stack -sym ./obj/local/armeabi
原文地址:http://blog.csdn.net/somestill/article/details/44345797