在3.0.1版本能编译生成android apk,到3.1.0竟然编译生成失败,看来还是不能盲目的去升级啊,。
附上编译生成日志:
2021-5-16 23:54-log: [runCmd E:\client\bwhd\build\android\proj\gradlew.bat - error] ^
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/base/job-system/job-system-taskflow/TFJobSystem.cpp:28:
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/base/job-system/job-system-taskflow/TFJobGraph.h:28:
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h:28:
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/external/sources\taskflow/taskflow.hpp
D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/external/sources\taskflow/core/executor.hpp:250
error: template argument for non-type template parameter must be an expression
std::is_invocable_r_v<void, C, cudaFlow&>, void>* = nullptr
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/Administrator/AppData/Local/Android/Sdk/ndk/17.2.4988734/sources/cxx-stl/llvm-libc++/include\type_traits:427:16: note: template parameter is declared here
template <bool _Bp, class _Tp = void> using enable_if_t = typename enable_if<_Bp, Tp>::type;
^
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/base/job-system/job-system-taskflow/TFJobSystem.cpp:28:
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/base/job-system/job-system-taskflow/TFJobGraph.h:28:
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h:28:
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/external/sources\taskflow/taskflow.hpp
D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/external/sources\taskflow/core/executor.hpp:255
error: no template named ‘is_invocable_r_v’ in namespace ‘std’; did you mean 'invokable_r’?
std::is_invocable_r_v<void, C, cudaFlowCapturer&>, void>* = nullptr
~~~~~~~~~~~~^
__invokable_r
C:/Users/Administrator/AppData/Local/Android/Sdk/ndk/17.2.4988734/sources/cxx-stl/llvm-libc++/include\type_traits:4336
note: ‘__invokable_r’ declared here
struct __invokable_r
^
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/base/job-system/job-system-taskflow/TFJobSystem.cpp:28:
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/base/job-system/job-system-taskflow/TFJobGraph.h:28:
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h:28:
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/external/sources\taskflow/taskflow.hpp
D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/external/sources\taskflow/core/executor.hpp:255
error: template argument for non-type template parameter must be an expression
std::is_invocable_r_v<void, C, cudaFlowCapturer&>, void>* = nullptr
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/Administrator/AppData/Local/Android/Sdk/ndk/17.2.4988734/sources/cxx-stl/llvm-libc++/include\type_traits:427:16: note: template parameter is declared here
template <bool Bp, class Tp = void> using enable_if_t = typename enable_if<Bp, Tp>::type;
^
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/base/job-system/job-system-taskflow/TFJobSystem.cpp:28:
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/base/job-system/job-system-taskflow/TFJobGraph.h:28:
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h:28:
In file included from D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/external/sources\taskflow/taskflow.hpp
D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/external/sources\taskflow/core/executor.hpp:257
error: class member cannot be redeclared
void invoke_cudaflow_task_entry(C&&, Node*);
^
D:/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/external/sources\taskflow/core/executor.hpp:252
note: previous declaration is here
void invoke_cudaflow_task_entry(C&&, Node*);
^
17 errors generated.
[56/407] Building CXX object CMakeFiles/cocos2d.dir/D/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/renderer/gfx-base/GFXPipelineState.cpp.o
[57/407] Building CXX object CMakeFiles/cocos2d.dir/D/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/platform/android/Application-android.cpp.o
[58/407] Building CXX object CMakeFiles/cocos2d.dir/D/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.cpp.o
[59/407] Building CXX object CMakeFiles/cocos2d.dir/D/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/renderer/gfx-base/GFXDescriptorSet.cpp.o
[60/407] Building CXX object CMakeFiles/cocos2d.dir/D/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/renderer/gfx-base/GFXRenderPass.cpp.o
[61/407] Building CXX object CMakeFiles/cocos2d.dir/D/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/renderer/gfx-base/GFXTextureBarrier.cpp.o
[62/407] Building CXX object CMakeFiles/cocos2d.dir/D/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/renderer/gfx-agent/DeviceAgent.cpp.o
[63/407] Building CXX object CMakeFiles/cocos2d.dir/D/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/platform/android/CanvasRenderingContext2D-android.cpp.o
[64/407] Building CXX object CMakeFiles/cocos2d.dir/D/CocosDashboard_1.0.11/resources/.editors/Creator/3.1.0/resources/resources/3d/engine-native/cocos/platform/FileUtils.cpp.o
ninja: build stopped: subcommand failed.
- 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 57s
2021-5-16 23:54-log: [runCmd E:\client\bwhd\build\android\proj\gradlew.bat] 34 actionable tasks: 34 executed
2021-5-16 23:54-warn: faile to exec E:\client\bwhd\build\android\proj\gradlew.bat dfh:assembleRelease
2021-5-16 23:54-error: make package E:\client\bwhd\build\android failed!
2021-5-16 23:54-log: [task:make]: failed!