打包安卓 armeabi-v7a 报错,其他几个选项正常

  • Creator 版本:1.9.1

  • 目标平台: Android

  • 详细报错信息,包含调用堆栈:

想把项目打包到安卓上,API Level-16 APP ABI 4个选项中 就一个armeabi-v7a 会出现错误,其他的都正常,所以现在打包的时候只有把v7a 这个选项去掉,初学,实在不知道为什么 ,特意上来请教。
另外,如果我不选这个,对apk有什么影响吗?

报错日志,不过我是看不懂

Successfully started process 'command '/Users/zhangzhengbo/Library/Android/sdk/ndk-bundle/ndk-build''
[armeabi-v7a] Compile++ arm  : cocos2djs_shared <= main.cpp
[armeabi-v7a] Compile++ arm  : cocos2djs_shared <= AppDelegate.cpp
[armeabi-v7a] Compile++ arm  : cocos2djs_shared <= jsb_module_register.cpp
[armeabi-v7a] Compile++ arm  : cocos2djs_shared <= SDKManager.cpp
[armeabi-v7a] Compile++ arm  : cocos2djs_shared <= jsb_anysdk_basic_conversions.cpp
[armeabi-v7a] Compile++ arm  : cocos2djs_shared <= manualanysdkbindings.cpp
[armeabi-v7a] Compile++ arm  : cocos2djs_shared <= jsb_anysdk_protocols_auto.cpp
[armeabi-v7a] SharedLibrary  : libcocos2djs.so
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/../jswrapper/v8/inspector_agent.cc:109: error: undefined reference to 'sigfillset'
/Users/zhangzhengbo/workspace/CCProject/
GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/../jswrapper/v8/inspector_agent.cc:126: error: undefined reference to 'sigemptyset'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/../jswrapper/v8/inspector_agent.cc:127: error: undefined reference to 'sigaddset'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/../jswrapper/v8/node.cc:359: error: undefined reference to 'sigfillset'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCParticleSystem.cpp:597: error: undefined reference to 'rand'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCTMXXMLParser.cpp:647: error: undefined reference to 'atof'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCTMXXMLParser.cpp:653: error: undefined reference to 'atof'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCTMXXMLParser.cpp:690: error: undefined reference to 'atof'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCTMXXMLParser.cpp:696: error: undefined reference to 'atof'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCConsole.cpp:1220: error: undefined reference to 'srand'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCConsole.cpp:1221: error: undefined reference to 'rand'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCConsole.cpp:1249: error: undefined reference to 'srand'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCConsole.cpp:1250: error: undefined reference to 'rand'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/fram
eworks/cocos2d-x/cocos/base/ccRandom.h:117: error: undefined reference to 'rand'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCActionTiledGrid.cpp:280: error: undefined reference to 'srand'
/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCActionTiledGrid.cpp:606: error: undefined reference to 'srand'
collect2: error: ld returned 1 exit status
make: *** [/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libcocos2djs.so] Error 1
:GHGame:externalNativeBuildDebug FAILED
:GHGame:externalNativeBuildDebug (Thread[Task worker for ':' Thread 3,5,main]) completed. Took 29.971 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':GHGame:externalNativeBuildDebug'.
> Build command failed.
  Error while executing process /Users/zhangzhengbo/Library/Android/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/jni/Android.mk NDK_APPLICATION_MK=/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-14 NDK_OUT=/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/debug/lib NDK_TOOLCHAIN_VERSION=4.9 APP_PLATFORM=android-16 NDK_MODULE_PATH=/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x:/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos:/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/external -j4 NDK_DEBUG=1 /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libcocos2djs.so}
  [armeabi-v7a] Compile++ arm  : cocos2djs_shared <= main.cpp
  [armeabi-v7a] Compile++ arm  : cocos2djs_shared <= AppDelegate.cpp
  [armeabi-v7a] Compile++ arm  : cocos2djs_shared <= jsb_module_register.cpp
  [armeabi-v7a] Compile++ arm  : cocos2djs_shared <= SDKManager.cpp
  [armeabi-v7a] Compile++ arm  : cocos2djs_shared <= jsb_anysdk_basic_conversions.cpp
  [armeabi-v7a] Compile++ arm  : cocos2djs_shared <= manualanysdkbindings.cpp
  [armeabi-v7a] Compile++ arm  : cocos2djs_shared <= jsb_anysdk_protocols_auto.cpp
  [armeabi-v7a] SharedLibrary  : libcocos2djs.so
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/../jswrapper/v8/inspector_agent.cc:109: error: undefined reference to 'sigfillset'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/../jswrapper/v8/inspector_agent.cc:126: error: undefined reference to 'sigemptyset'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/../jswrapper/v8/inspector_agent.cc:127: error: undefined reference to 'sigaddset'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/../jswrapper/v8/node.cc:359: error: undefined reference to 'sigfillset'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCParticleSystem.cpp:597: error: undefined reference to 'rand'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCTMXXMLParser.cpp:647: error: undefined reference to 'atof'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCTMXXMLParser.cpp:653: error: undefined reference to 'atof'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCTMXXMLParser.cpp:690: error: undefined reference to 'atof'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCTMXXMLParser.cpp:696: error: undefined reference to 'atof'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCConsole.cpp:1220: error: undefined reference to 'srand'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCConsole.cpp:1221: error: undefined reference to 'rand'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCConsole.cpp:1249: error: undefined reference to 'srand'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCConsole.cpp:1250: error: undefined reference to 'rand'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/base/ccRandom.h:117: error: undefined reference to 'rand'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCActionTiledGrid.cpp:280: error: undefined reference to 'srand'
  /Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCActionTiledGrid.cpp:606: error: undefined reference to 'srand'
  collect2: error: ld returned 1 exit status
  make: *** [/Users/zhangzhengbo/workspace/CCProject/GHGame/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libcocos2djs.so] Error 1


* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 32s
42 actionable tasks: 2 executed, 40 up-to-date
Error running command, return code: 1.