Executing tasks: [:hello_world:generateDebugSources, :hello_world:generateDebugAndroidTestSources, :hello_world:mockableAndroidJar, :hello_world:compileDebugAndroidTestSources, :hello_world:compileDebugUnitTestSources, :hello_world:compileDebugSources, :libcocos2dx:generateDebugSources, :libcocos2dx:generateDebugAndroidTestSources, :libcocos2dx:mockableAndroidJar, :libcocos2dx:compileDebugAndroidTestSources, :libcocos2dx:compileDebugUnitTestSources, :libcocos2dx:compileDebugSources]
Configuration on demand is an incubating feature.
Configuration ‘compile’ in project ‘:hello_world’ is deprecated. Use ‘implementation’ instead.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
Configuration ‘compile’ in project ‘:libcocos2dx’ is deprecated. Use ‘implementation’ instead.
:hello_world:preBuild UP-TO-DATE
:libcocos2dx:preBuild UP-TO-DATE
:libcocos2dx:preDebugBuild UP-TO-DATE
:libcocos2dx:checkDebugManifest UP-TO-DATE
:libcocos2dx:processDebugManifest UP-TO-DATE
:hello_world:preDebugBuild UP-TO-DATE
:libcocos2dx:compileDebugAidl UP-TO-DATE
:hello_world:compileDebugAidl UP-TO-DATE
:libcocos2dx:packageDebugRenderscript NO-SOURCE
:hello_world:compileDebugRenderscript UP-TO-DATE
:hello_world:checkDebugManifest UP-TO-DATE
:hello_world:generateDebugBuildConfig UP-TO-DATE
:hello_world:prepareLintJar UP-TO-DATE
:hello_world:generateDebugResValues UP-TO-DATE
:hello_world:generateDebugResources UP-TO-DATE
:libcocos2dx:compileDebugRenderscript UP-TO-DATE
:libcocos2dx:generateDebugResValues UP-TO-DATE
:libcocos2dx:generateDebugResources UP-TO-DATE
:libcocos2dx:packageDebugResources UP-TO-DATE
:hello_world:mergeDebugResources UP-TO-DATE
:hello_world:createDebugCompatibleScreenManifests UP-TO-DATE
:hello_world:processDebugManifest UP-TO-DATE
:hello_world:splitsDiscoveryTaskDebug UP-TO-DATE
:libcocos2dx:platformAttrExtractor UP-TO-DATE
:libcocos2dx:processDebugResources UP-TO-DATE
:hello_world:processDebugResources UP-TO-DATE
:hello_world:generateDebugSources UP-TO-DATE
:hello_world:preDebugAndroidTestBuild UP-TO-DATE
:hello_world:compileDebugAndroidTestAidl UP-TO-DATE
:hello_world:processDebugAndroidTestManifest UP-TO-DATE
:hello_world:compileDebugAndroidTestRenderscript UP-TO-DATE
:hello_world:generateDebugAndroidTestBuildConfig UP-TO-DATE
:hello_world:generateDebugAndroidTestResValues UP-TO-DATE
:hello_world:generateDebugAndroidTestResources UP-TO-DATE
:hello_world:mergeDebugAndroidTestResources UP-TO-DATE
:hello_world:splitsDiscoveryTaskDebugAndroidTest UP-TO-DATE
:hello_world:processDebugAndroidTestResources UP-TO-DATE
:hello_world:generateDebugAndroidTestSources UP-TO-DATE
:hello_world:mockableAndroidJar UP-TO-DATE
:libcocos2dx:generateDebugBuildConfig UP-TO-DATE
:libcocos2dx:prepareLintJar UP-TO-DATE
:libcocos2dx:generateDebugSources UP-TO-DATE
:libcocos2dx:javaPreCompileDebug UP-TO-DATE
:libcocos2dx:compileDebugJavaWithJavac UP-TO-DATE
:libcocos2dx:processDebugJavaRes NO-SOURCE
:libcocos2dx:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
:hello_world:javaPreCompileDebug UP-TO-DATE
:hello_world:nativeLibsToJar UP-TO-DATE
:hello_world:compileDebugJavaWithJavac UP-TO-DATE
:hello_world:bundleAppClassesDebug UP-TO-DATE
:hello_world:javaPreCompileDebugAndroidTest UP-TO-DATE
:hello_world:compileDebugAndroidTestJavaWithJavac UP-TO-DATE
:hello_world:compileDebugAndroidTestSources UP-TO-DATE
:hello_world:preDebugUnitTestBuild UP-TO-DATE
:hello_world:javaPreCompileDebugUnitTest UP-TO-DATE
:hello_world:compileDebugUnitTestJavaWithJavac NO-SOURCE
:hello_world:processDebugJavaRes NO-SOURCE
:hello_world:processDebugUnitTestJavaRes NO-SOURCE
:hello_world:compileDebugUnitTestSources UP-TO-DATE
:hello_world:generateJsonModelDebug UP-TO-DATE
:hello_world:externalNativeBuildDebug
Build cocos2djs armeabi
[armeabi] SharedLibrary : libcocos2djs.so
C
:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCActionGrid3D.o):function cocos2d::Shaky3D::update(float): error: undefined reference to ‘rand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCActionGrid3D.o):function cocos2d::Shaky3D::update(float): error: undefined reference to ‘rand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCActionGrid3D.o):function cocos2d::Shaky3D::update(float): error: undefined reference to ‘rand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCActionTiledGrid.o):function cocos2d::ShakyTiles3D::update(float): error: undefined reference to ‘rand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCActionTiledGrid.o):function cocos2d::ShuffleTiles::startWithTarget(cocos2d::Node*): error: undefined reference to ‘srand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCActionTiledGrid.o):function cocos2d::TurnOffTiles::startWithTarget(cocos2d::Node*): error: undefined reference to ‘srand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCTMXXMLParser.o):function .LTHUNK4: error: undefined reference to ‘atof’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCTMXXMLParser.o):function .LTHUNK4: error: undefined reference to ‘atof’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCTMXXMLParser.o):function .LTHUNK4: error: undefined reference to ‘atof’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCTMXXMLParser.o):function .LTHUNK4: error: undefined reference
to ‘atof’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCConsole.o):function cocos2d::Console::commandTouchSubCommandTap(int, std::string const&): error: undefined reference to ‘srand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCConsole.o):function cocos2d::Console::commandTouchSubCommandSwipe(int, std::string const&): error: undefined reference to 'srand
’
collect2.exe: error: ld returned 1 exit status
make.exe: *** [F:/Cocos/android/1.7.0/ceshi/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/debug/obj/local/armeabi/libcocos2djs.so] Error 1
:hello_world:externalNativeBuildDebug FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:hello_world:externalNativeBuildDebug’.
Build command failed.
Error while executing process D:\androidSDK\cocosNdk\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=F:\Cocos\android\1.7.0\ceshi\frameworks\runtime-src\proj.android-studio\app\jni\Android.mk NDK_APPLICATION_MK=F:\Cocos\android\1.7.0\ceshi\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDK_DEBUG=1 APP_PLATFORM=android-14 NDK_OUT=F:/Cocos/android/1.7.0/ceshi/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=F:\Cocos\android\1.7.0\ceshi\frameworks\runtime-src\proj.android-studio\app\build\intermediates\ndkBuild\debug\lib NDK_TOOLCHAIN_VERSION=4.9 APP_PLATFORM=android-14 NDK_MODULE_PATH=C:\CocosCreator\170\resources\cocos2d-x;C:\CocosCreator\170\resources\cocos2d-x\cocos;C:\CocosCreator\170\resources\cocos2d-x\external -j4 NDK_DEBUG=1 F:/Cocos/android/1.7.0/ceshi/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/debug/obj/local/armeabi/libcocos2djs.so}
[armeabi] SharedLibrary : libcocos2djs.so
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCActionGrid3D.o):function cocos2d::Shaky3D::update(float): error: undefined reference to ‘rand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCActionGrid3D.o):function cocos2d::Shaky3D::update(float): error: undefined reference to ‘rand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCActionGrid3D.o):function cocos2d::Shaky3D::update(float): error: undefined reference to ‘rand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCActionTiledGrid.o):function cocos2d::ShakyTiles3D::update(float): error: undefined reference to ‘rand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCActionTiledGrid.o):function cocos2d::ShuffleTiles::startWithTarget(cocos2d::Node*): error: undefined reference to ‘srand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCActionTiledGrid.o):function cocos2d::TurnOffTiles::startWithTarget(cocos2d::Node*): error: undefined reference to ‘srand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCTMXXMLParser.o):function .LTHUNK4: error: undefined reference to ‘atof’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCTMXXMLParser.o):function .LTHUNK4: error: undefined reference to ‘atof’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCTMXXMLParser.o):function .LTHUNK4: error: undefined reference to ‘atof’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCTMXXMLParser.o):function .LTHUNK4: error: undefined reference to ‘atof’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCConsole.o):function cocos2d::Console::commandTouchSubCommandTap(int, std::string const&): error: undefined reference to ‘srand’
C:/CocosCreator/170/resources/cocos2d-x/cocos/prebuilt-mk/…/…/prebuilt/android/armeabi/libcocos2dxinternal.a(CCConsole.o):function cocos2d::Console::commandTouchSubCommandSwipe(int, std::string const&): error: undefined reference to ‘srand’
collect2.exe: error: ld returned 1 exit status
make.exe: *** [F:/Cocos/android/1.7.0/ceshi/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/debug/obj/local/armeabi/libcocos2djs.so] Error 1
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 8s
44 actionable tasks: 1 executed, 43 up-to-date
