Problem when exporting for android with the gradle build option activated

editor/export/editor_export_platform.h:182 - Exportar: Unable to copy and rename export file:

Configure project :
WARNING: The option setting ‘android.overridePathCheck=true’ is experimental.
The current default is ‘false’.

Task :copyAndRenameReleaseAab FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:copyAndRenameReleaseAab’.

Cannot access a file in the destination directory. Copying to a directory which contains unreadable content is not supported. Declare the task as untracked by using Task.doNotTrackState(). For more information, please refer to Incremental build in the Gradle documentation.
Failed to create MD5 hash for file content.

  • 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 721ms
1 actionable task: 1 executed

1 Like

Did you figure out the issue?

Nevermind, it was an issue that was fixed and I think merged for 4.3 export templates and I think cherry-picked for 4.2 (Fix issue causing the `copyAndRename*` task to fail on occasions on Windows machines by m4gr3d · Pull Request #90802 · godotengine/godot · GitHub). You can also just change your version to 4.2.1 / 4.3 or 4.2.3 when it comes out.