craetor接入sdk之后打包安卓出错

  • Creator 版本: creator3D 1.2

  • 目标平台:安卓原生

  • 首个报错:

Task :the-ball-hit-the-tower:externalNativeBuildRelease
Build cocos2djs_armeabi-v7a
make: *** No rule to make target ‘cocos2djs’. Stop.

Task :the-ball-hit-the-tower:externalNativeBuildRelease FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:the-ball-hit-the-tower:externalNativeBuildRelease’.

Build command failed.
Error while executing process D:\Tool\android\android-sdk\ndk\21.4.7075529\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\Cocos\the-ball-hit-the-tower\build\android\frameworks\runtime-src\proj.android-studio\app\jni\Android.mk NDK_APPLICATION_MK=D:\Cocos\the-ball-hit-the-tower\build\android\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=D:/Cocos/the-ball-hit-the-tower/build/android/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=D:\Cocos\the-ball-hit-the-tower\build\android\frameworks\runtime-src\proj.android-studio\app\build\intermediates\ndkBuild\release\lib NDK_TOOLCHAIN_VERSION=clang NDK_MODULE_PATH=d:\Tool\CocosDashboard\resources.editors\Creator3D\1.2.0\resources\resources\3d\cocos2d-x-lite;d:\Tool\CocosDashboard\resources.editors\Creator3D\1.2.0\resources\resources\3d\cocos2d-x-lite\cocos;d:\Tool\CocosDashboard\resources.editors\Creator3D\1.2.0\resources\resources\3d\cocos2d-x-lite\external -j8 NDK_DEBUG=0 cocos2djs}

make: *** No rule to make target ‘cocos2djs’. Stop.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

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

BUILD FAILED in 4s
25 actionable tasks: 2 executed, 23 up-to-date

  • 之前哪个版本是正常的:gradle plugin3.2.0 ndk21.4.7075529,没有接入各种sdk之前是正常的

看着是同个问题:

升级一下gradle版本