栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 游戏开发 > 其他

CocosCreator打包失败,报错:执行命令出错,返回值:2

其他 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

CocosCreator打包失败,报错:执行命令出错,返回值:2

环境:

CocosCreator 1.4.1

Ndk:r14b

日志如下:

编译模式:release

使用 Eclipse 工程:E:HengShui2clientbuildjsb-binaryframeworksruntime-srcproj.android

正在执行:'"C:UsersAdministratorDownloadsadt-bundle-windows-x86-20130917.467161976adt-bundle-windows-x86-20130917sdktoolsandroid" update project -t android-23 -p E:HengShui2clientbuildjsb-binaryframeworksruntime-srcproj.android'

Updated project.properties

Updated local.properties

Updated file E:HengShui2clientbuildjsb-binaryframeworksruntime-srcproj.androidproguard-project.txt

It seems that there are sub-projects. If you want to update them

please use the --subprojects parameter.

正在执行 ndk-build...

NDK 编译模式:release

正在执行:'"E:android-ndk-r14b-windows-x86_64android-ndk-r14bndk-build" -C E:HengShui2clientbuildjsb-binaryframeworksruntime-srcproj.android -j4 APP_ABI="armeabi armeabi-v7a" NDK_MODULE_PATH=D:/CocosCreator/resources/cocos2d-x;D:/CocosCreator/resources/cocos2d-x/cocos;D:/CocosCreator/resources/cocos2d-x/external;D:/CocosCreator/resources/cocos2d-x/external/android/include;D:/CocosCreator/resources/cocos2d-x/external/android/spidermonkey NDK_TOOLCHAIN_VERSION=4.9'

Android NDK: WARNING: APP_PLATFORM android-23 is larger than android:minSdkVersion 11 in ./AndroidManifest.xml

Android NDK: WARNING: Ignoring unknown import directory: D:/CocosCreator/resources/cocos2d-x/external/android/include

Android NDK: WARNING: Ignoring unknown import directory: D:/CocosCreator/resources/cocos2d-x/external/android/spidermonkey

make: Entering directory `E:/HengShui2client/build/jsb-binary/frameworks/runtime-src/proj.android'

E:/android-ndk-r14b-windows-x86_64/android-ndk-r14b/build//../build/core/build-binary.mk:687: Android NDK: Module cocos2djs_shared depends on undefined modules: cocos2d_js_android_static log

make: Leaving directory `E:/HengShui2client/build/jsb-binary/frameworks/runtime-src/proj.android'

E:/android-ndk-r14b-windows-x86_64/android-ndk-r14b/build//../build/core/build-binary.mk:700: *** Android NDK: Aborting (set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies)    .  Stop.

执行命令出错,返回值:2。

搜了一下,网上说要换ndk,换成了r10e,OK了

注意:换了ndk之后,记得重新构建一次,再点编译

不知道为什么,我构建了好几次,才编译成功

如果还是失败,看看自己的签名文件对应的别名和密钥对不对

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/901711.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号