使用 cocos compile -p android --ap-20编译时报错

C:\cocos2d-x-3.4\codes\hello>cocos compile -p android --ap-20
Running command: compile
Building mode: debug
Android platform not specified, searching a default one…
running: ‘“C:\软件\adt-bundle-windows-x86_64-20140702\sdk\tools\android” update project -t android-20 -p C:\cocos2d-x-3.4\codes\hello\proj.android’

Updated project.properties
Updated local.properties
Updated file C:\cocos2d-x-3.4\codes\hello\proj.android\proguard-project.txt
Android platform not specified, searching a default one…
running: ‘“C:\软件\adt-bundle-windows-x86_64-20140702\sdk\tools\android” update lib-project -p C:\cocos2d-x-3.4\codes\hello\proj.android…/cocos2d/cocos/platform/android/java -t android-20’

Updated project.properties
Updated local.properties
Updated file C:\cocos2d-x-3.4\codes\hello\proj.android…\cocos2d\cocos\platform\android\java\proguard-project.txt
building native
NDK build mode: debug
NDK_TOOLCHAIN_VERSION: 4.8
Ndk build failed!
C:\cocos2d-x-3.4\codes\hello>
提示这样的错误

这种失败的信息太少了。
用的NDK是什么版本?也许升级一下就好了。。。

后来把ndk和ant放到adt下,修改环境变量。用Eclipse编译成功了