您的位置:首页 > 移动开发 > Cocos引擎

Cocos2d-x 3.2编译生成Android程序出错Error running command, return code: 2的解决方法

2014-10-15 11:11 701 查看
用Cocos2d-x 3.2正式版创建项目,结果使用cocos compile -p android编译生成APK程序,结果悲剧了,出现以下错误。

Android NDK: Invalid APP_STL value: c++_static

Android NDK: Please use one of the following instead: system stlport_static stlport_static_hard stlport_shared stlport_shared_hard gnustl_static gnustl_shared gabi++_static gabi++_shared libc++_static libc++_shared none

make: Entering directory `/game/physics_engine/proj.android'

/sdk/ndk/android-ndk-r9c/build/core/add-application.mk:274: *** Android NDK: Aborting . Stop.

make: Leaving directory `/game/physics_engine/proj.android'

Error running command, return code: 2

解决方案:

造成问题的原因是android-ndk版本太低,更新到最新的ndk就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐