环境:Cocos Dashboard 1.2.0, Creator 2.4.8, android-ndk-r19c
编译报错日志如下:
- What went wrong:
Execution failed for task ‘:MyProject:mergeChannel0DebugAssets’.
Could not copy file ‘E:\CocosProjects\TestProject\build\jsb-link\assets\Bundle1’
to 'E:\CocosProjects\TestProject\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\task
':MyProject:mergeChannel0DebugAssets' property 'outputDir'\assets\Bundle1'.
Failed to create parent directory 'E:\CocosProjects\TestProject\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\task
‘:MyProject:mergeChannel0DebugAssets’ property ‘outputDir’’
when creating directory 'E:\CocosProjects\TestProject\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\task
‘:MyProject:mergeChannel0DebugAssets’ property ‘outputDir’\assets\Bundle1’
- 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.
==============================================================================
2: Task failed with an exception.
- What went wrong:
Execution failed for task ‘:MyProject:externalNativeBuildChannel0Debug’.
Build command failed.
Error while executing process E:\Softs\Android\android-ndk-r19c\ndk-build.cmd
with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\CocosProjects\TestProject\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Android.mk
NDK_APPLICATION_MK=E:\CocosProjects\TestProject\build\jsb-link\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-16
NDK_OUT=E:/CocosProjects/TestProject/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/channel0Debug/obj
NDK_LIBS_OUT=E:\CocosProjects\TestProject\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build\intermediates\ndkBuild\channel0Debug\lib
NDK_TOOLCHAIN_VERSION=clang NDK_MODULE_PATH=C:\CocosDashboard_1.2.0\resources\.editors\Creator\2.4.8\resources\cocos2d-x;
C:\CocosDashboard_1.2.0\resources\.editors\Creator\2.4.8\resources\cocos2d-x\cocos;
C:\CocosDashboard_1.2.0\resources\.editors\Creator\2.4.8\resources\cocos2d-x\external -j8 NDK_DEBUG=1 cocos2djs}
Android NDK: WARNING: Unsupported source file extensions
in C:\CocosDashboard_1.2.0\resources\.editors\Creator\2.4.8\resources\cocos2d-x/cocos/Android.mk for module cocos2dx_static
Android NDK: …/external/sources/edtaa3func/edtaa3func.h renderer/memop/RecyclePool.hpp
[armeabi-v7a] "Compile++ arm ": “cocos2dx_static <= jsb_renderer_auto.cpp”
[armeabi-v7a] "Compile++ arm ": “cocos2dx_static <= jsb_renderer_manual.cpp”
[armeabi-v7a] "Compile++ arm ": “cocos2dx_static <= jsb_gfx_manual.cpp”
[armeabi-v7a] "Compile++ arm ": “cocos2dx_static <= jsb_gfx_auto.cpp”
[armeabi-v7a] "Compile++ arm ": “cocos2dx_static <= jsb_video_auto.cpp”