cocos2d-x 执行build_native.py,报错,求指教

BUILD FAILED
/Users/shadow/game/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:892: The following error occurred while executing this line:
/Users/shadow/game/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:894: The following error occurred while executing this line:
/Users/shadow/game/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:906: The following error occurred while executing this line:
/Users/shadow/game/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:283: null returned: 2

Total time: 5 seconds
执行命令出错,返回值:1。
Traceback (most recent call last):
File “/Users/shadow/game/testgame/proj.android/build_native.py”, line 43, in
build(opts.build_mode)
File “/Users/shadow/game/testgame/proj.android/build_native.py”, line 28, in build
raise Exception(“Build dynamic library for project " + app_android_root + " ] fails!”)
Exception: Build dynamic library for project /Users/shadow/game/testgame/proj.android/…/ ] fails!

版本cocos2d-x 3.7.1 NDK: android-ndk-r10c

求教各位,应该如何解决这个问题。。。。。。。