cocos js 打包apk出错了,求助

我看你有戏 2018-03-17 04:10:22

C:\Program Files\Cocos Code IDE>
Updated project.properties
Updated local.properties
Updated file E:\cocos\hello\frameworks\runtime-src\proj.android\proguard-project.txt
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
make.exe: Entering directory `E:/cocos/hello/frameworks/runtime-src/proj.android'
[armeabi] Compile++ arm : cocos2djs_shared <= SimpleConfigParser.cpp
[armeabi] Compile++ arm : cocos2djs_shared <= AppDelegate.cpp
[armeabi] Compile++ arm : cocos2djs_shared <= RuntimeJsImpl.cpp
[armeabi] Compile++ arm : cocos2djs_shared <= main.cpp
[armeabi] Compile thumb : cpufeatures <= cpu-features.c
[armeabi] StaticLibrary : libcpufeatures.a
In file included from C:\Cocos\frameworks/cocos2d-x-3.9/cocos/3d/prebuilt-mk/../../network/HttpClient.h:34:0,
from C:\Cocos\frameworks/cocos2d-x-3.9/cocos/scripting/js-bindings/proj.android/prebuilt-mk/../../manual/network/XMLHTTPRequest.h:34,
from jni/../../Classes/js_module_register.h:22,
from jni/../../Classes/AppDelegate.cpp:12:
C:\Cocos\frameworks/cocos2d-x-3.9/cocos/3d/prebuilt-mk/../../network/HttpRequest.h: In member function 'void cocos2d::network::HttpRequest::setResponseCallback(cocos2d::Ref*, cocos2d::SEL_CallFuncND)':
C:\Cocos\frameworks/cocos2d-x-3.9/cocos/3d/prebuilt-mk/../../network/HttpRequest.h:245:66: warning: 'void cocos2d::network::HttpRequest::setResponseCallback(cocos2d::Ref*, cocos2d::network::SEL_HttpResponse)' is deprecated (declared at C:\Cocos\frameworks/cocos2d-x-3.9/cocos/3d/prebuilt-mk/../../network/HttpRequest.h:255) [-Wdeprecated-declarations]
setResponseCallback(pTarget, (SEL_HttpResponse) pSelector);
^
At global scope:
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat" [enabled by default]
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat" [enabled by default]
[armeabi] SharedLibrary : libcocos2djs.so
C:\Cocos\frameworks/cocos2d-x-3.9/cocos/scripting/js-bindings/proj.android/prebuilt-mk/..\..\..\..\..\prebuilt\android/armeabi/libjscocos2dandroid.a(CCJavascriptJavaBridge.o):function JavascriptJavaBridge::CallInfo::checkType(std::string const&, unsigned int*): error: undefined reference to 'std::__throw_out_of_range_fmt(char const*, ...)'
C:\Cocos\frameworks/cocos2d-x-3.9/cocos/scripting/js-bindings/proj.android/prebuilt-mk/..\..\..\..\..\prebuilt\android/armeabi/libjscocos2dandroid.a(CCJavascriptJavaBridge.o):function JavascriptJavaBridge::callStaticMethod(JSContext*, unsigned int, JS::Value*): error: undefined reference to 'std::__throw_out_of_range_fmt(char const*, ...)'
C:\Cocos\frameworks/cocos2d-x-3.9/cocos/editor-support/cocostudio/prebuilt-mk/..\..\..\..\prebuilt\android/armeabi/libcocostudio.a(CCActionNode.o):function std::vector<cocos2d::Vector<cocostudio::ActionFrame*>*, std::allocator<cocos2d::Vector<cocostudio::ActionFrame*>*> >::at(unsigned int): error: undefined reference to 'std::__throw_out_of_range_fmt(char const*, ...)'
C:\Cocos\frameworks/cocos2d-x-3.9/cocos/editor-support/cocostudio/prebuilt-mk/..\..\..\..\prebuilt\android/armeabi/libcocostudio.a(CCArmature.o):function cocostudio::Armature::drawContour(): error: undefined reference to 'std::__throw_out_of_range_fmt(char const*, ...)'
collect2.exe: error: ld returned 1 exit status
make.exe: *** [obj/local/armeabi/libcocos2djs.so] Error 1
make.exe: Leaving directory `E:/cocos/hello/frameworks/runtime-src/proj.android'
编译模式:debug
使用 Eclipse 工程:E:\cocos\hello\frameworks\runtime-src\proj.android
正在执行:'"D:\install\adt-bundle-windows-x86_64-20140702\sdk\tools\android" update project -t android-20 -p E:\cocos\hello\frameworks\runtime-src\proj.android'

正在执行 ndk-build...
NDK 编译模式:release
NDK_TOOLCHAIN_VERSION: 4.8
正在执行:'"D:\install\android-ndk-r9d\ndk-build" -C E:\cocos\hello\frameworks\runtime-src\proj.android -j7 NDK_MODULE_PATH=C:\Cocos\frameworks/cocos2d-x-3.9;C:\Cocos\frameworks/cocos2d-x-3.9/cocos;C:\Cocos\frameworks/cocos2d-x-3.9/external NDK_TOOLCHAIN_VERSION=4.8'

执行命令出错,返回值:2。
...全文
445 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

721

社区成员

发帖
与我相关
我的任务
社区描述
Cocos2d-x相关内容讨论专区
社区管理员
  • Cocos2d-x
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧