求教大神,cocos2d-js打包安卓失败

E:>cd hello

E:\hello>cocos compile -p android
Running command: compile
Building mode: debug
Android platform not specified, searching a default one…
running: ‘“E:\android-sdk-windows\tools\android” update project -t android-19 -p
E:\hello\frameworks\runtime-src\proj.android’

Updated project.properties
Updated local.properties
Updated file E:\hello\frameworks\runtime-src\proj.android\proguard-project.txt
building native
NDK build mode: debug
NDK_TOOLCHAIN_VERSION: 4.8
running: ‘“E:\android-ndk-r9d\ndk-build” -C E:\hello\frameworks\runtime-src\proj
.android -j4 NDK_MODULE_PATH=E:\Cocos\frameworks/cocos2d-x-3.4rc1;E:\Cocos\frame
works/cocos2d-x-3.4rc1/cocos;E:\Cocos\frameworks/cocos2d-x-3.4rc1/external NDK_T
OOLCHAIN_VERSION=4.8 NDK_DEBUG=1’

Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersi
on 9 in ./AndroidManifest.xml
make.exe: Entering directory E:/hello/frameworks/runtime-src/proj.android' Gdbserver : libs/armeabi/gdbserver Gdbsetup : libs/armeabi/gdb.setup Compile++ thumb: cocos2djs_shared <= AppDelegate.cpp Compile++ thumb: cocos2djs_shared <= SimpleConfigParser.cpp Compile++ thumb: cocos2djs_shared <= RuntimeJsImpl.cpp Compile++ thumb: cocos2djs_shared <= main.cpp In file included from E:\Cocos\frameworks/cocos2d-x-3.4rc1/cocos/3d/prebuilt-mk/ ../../network/HttpClient.h:30:0, from E:\Cocos\frameworks/cocos2d-x-3.4rc1/cocos/scripting/js-bi ndings/proj.android/prebuilt-mk/../../manual/network/XMLHTTPRequest.h:34, from jni/../../Classes/js_module_register.h:19, from jni/../../Classes/ide-support/RuntimeJsImpl.cpp:18: E:\Cocos\frameworks/cocos2d-x-3.4rc1/cocos/3d/prebuilt-mk/../../network/HttpRequ est.h: In member function 'void cocos2d::network::HttpRequest::setResponseCallba ck(cocos2d::Ref*, cocos2d::SEL_CallFuncND)': E:\Cocos\frameworks/cocos2d-x-3.4rc1/cocos/3d/prebuilt-mk/../../network/HttpRequ est.h:185:66: warning: 'void cocos2d::network::HttpRequest::setResponseCallback( cocos2d::Ref*, cocos2d::network::SEL_HttpResponse)' is deprecated (declared at E :\Cocos\frameworks/cocos2d-x-3.4rc1/cocos/3d/prebuilt-mk/../../network/HttpReque st.h:188) -Wdeprecated-declarations] setResponseCallback(pTarget, (SEL_HttpResponse) pSelector); ^ Compile thumb : cpufeatures <= cpu-features.c StaticLibrary : libcpufeatures.a At global scope: cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat" [e nabled by default] cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat" [e nabled by default] SharedLibrary : libcocos2djs.so E:\Cocos\frameworks/cocos2d-x-3.4rc1/cocos/scripting/js-bindings/proj.android/pr ebuilt-mk/../../../../../prebuilt/android/armeabi/libjscocos2dandroid.a(CCJavasc riptJavaBridge.o):function JavascriptJavaBridge::callStaticMethod(JSContext*, un signed int, JS::Value*): error: undefined reference to 'std::__throw_out_of_rang e_fmt(char const*, ...)' E:\Cocos\frameworks/cocos2d-x-3.4rc1/cocos/editor-support/cocostudio/prebuilt-mk /../../../../prebuilt/android/armeabi/libcocostudio.a(CCActionNode.o):function s td::vector<cocos2d::Vector<cocostudio::ActionFrame*>*, std::allocator<cocos2d::V ector<cocostudio::ActionFrame*>*> >::at(unsigned int): error: undefined referenc e to 'std::__throw_out_of_range_fmt(char const*, ...)' E:\Cocos\frameworks/cocos2d-x-3.4rc1/cocos/editor-support/cocostudio/prebuilt-mk /../../../../prebuilt/android/armeabi/libcocostudio.a(CCArmature.o):function coc ostudio::Armature::drawContour(): error: undefined reference to 'std::__throw_ou t_of_range_fmt(char const*, ...)' E:\Cocos\frameworks/cocos2d-x-3.4rc1/cocos/editor-support/cocostudio/prebuilt-mk /../../../../prebuilt/android/armeabi/libcocostudio.a(CCArmature.o):function coc ostudio::Armature::init(std::string const&): error: undefined reference to 'std: :__throw_out_of_range_fmt(char const*, ...)' collect2.exe: error: ld returned 1 exit status make.exe: *** Error 1 make.exe: Leaving directory E:/hello/frameworks/runtime-src/proj.android’
Ndk build failed!
E:\hello>

同问!!哪位大神知道…

配置没弄好吧 JDK版本和NDK版本好像有要求

使用ndk r10c试试。

好像导入eclipse后编译很多问题,连教程都没有