已经按文档设置
安装配置原生环境 · Cocos Creator
版本也是一一对应,但是就是编译出错
-
Creator 版本:
3.7.3 -
目标平台:
Android原生 -
重现方式:
构建成安卓的工程,编译无法通过 -
首个报错:
FAILURE: Build completed with 6 failures.
1: Task failed with an exception.
- What went wrong:
A problem was found with the configuration of task ‘:hello_world:processDebugManifest’ (type ‘ProcessMultiApkApplicationManifest’).
File ‘G:\NewProject_3\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build\intermediates\merged_manifest\debug\AndroidManifest.xml’ specified for property ‘mainMergedManifest’ does not exist.
- 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 ‘:hello_world:compressDebugAssets’.
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
G:\NewProject_3\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build\intermediates\merged_assets\debug\out
- 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.
==============================================================================
3: Task failed with an exception.
- What went wrong:
A problem was found with the configuration of task ‘:hello_world:mergeExtDexDebug’ (type ‘DexMergingTask’).
Directory ‘G:\NewProject_3\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build\intermediates\external_file_lib_dex_archives\debug’ specified for property ‘fileDependencyDexDir’ does not exist.
- 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.
==============================================================================
4: Task failed with an exception.
- What went wrong:
A problem was found with the configuration of task ‘:instantapp:processDebugManifest’ (type ‘ProcessMultiApkApplicationManifest’).
File ‘G:\NewProject_3\build\jsb-link\frameworks\runtime-src\proj.android-studio\instantapp\build\intermediates\merged_manifest\debug\AndroidManifest.xml’ specified for property ‘mainMergedManifest’ does not exist.
- 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.
==============================================================================
5: Task failed with an exception.
- What went wrong:
Execution failed for task ‘:instantapp:compressDebugAssets’.
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
G:\NewProject_3\build\jsb-link\frameworks\runtime-src\proj.android-studio\instantapp\build\intermediates\merged_assets\debug\out
- 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.
==============================================================================
6: Task failed with an exception.
- What went wrong:
A problem was found with the configuration of task ‘:instantapp:mergeExtDexDebug’ (type ‘DexMergingTask’).
Directory ‘G:\NewProject_3\build\jsb-link\frameworks\runtime-src\proj.android-studio\instantapp\build\intermediates\external_file_lib_dex_archives\debug’ specified for property ‘fileDependencyDexDir’ does not exist.
-
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
63 actionable tasks: 11 executed, 52 up-to-date* Try:
- 之前哪个版本是正常的:
- 手机型号:
- 手机浏览器:
- 编辑器操作系统:
- 重现概率: