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就可以了
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就可以了
相关文章推荐
- Cocos2d-x 3.2编译生成Android程序出错的解决方案:c++_static报错
- Cocos2d-x 3.2编译生成Android程序出错的解决方案:c++_static报错
- Cocos2d-x 3.2编译生成Android程序出错的解决方案
- 解决Cocos2d-x3.1编译生成Android程序出现Android NDK:Aborting. . Stop错误
- 编译Android驱动对应的C测试程序出错的解决方法以及正确流程
- 编译Android驱动对应的C测试程序出错的解决方法以及正确流程
- 编译Android驱动对应的C测试程序出错的解决方法以及正确流程
- Cocos2d-x 3.0 TestCpp android编译出错 解决 error: expected ';' at end of member declaration
- 【cocos2d-x】cocos2d-x 3.2 在 NDK10下编译出错的解决方法
- cocos2d-x3.2中2编译生成Android程序出错的解决方案:c++_static报错
- cocos2d-x 3.4 eclipse android 编译是出现WindowsError: [Error 5] 的解决方法 assets
- Android ADT无法编译生成R.java的问题解决方法
- Android编译Libwebcore出错解决方法
- 编译第一次出错,第二次正常。。。。Win7安装vs2008编译报LINK : Internal error during IncrBuildImage--解决方法
- Sublime2编译Python程序EOFError:EOF when reading a line解决方法
- android TabHost程序运行出错解决方法
- 关于JCreator在编译程序时出现的"Error:Invalid path"问题的解决方法
- Debian x64 编译 32位程序出错的一些解决方法
- linux下用gcc编译使用了math库函数的程序出错的解决方法
- Error: ShouldNotReachHere() android工程类中main方法运行出错问题解决