Execution failed for task ':app:copyConfigFiles'

Hello,

I’m encountering an error when building the APK, and I would appreciate guidance on resolving it. My current setup includes:

  1. SDK version: 35
  2. JDK version: 23
  3. Flutter: flutter_windows_3.24.4-stable
  4. Android Studio: 2024.2.1.11

Error Message:

* What went wrong:
Execution failed for task ':app:copyConfigFiles'.
> Cannot access a file in the destination directory. Copying to a directory that contains unreadable content is not supported. Declare the task as untracked by using Task.doNotTrackState(). For more information, please refer to https://docs.gradle.org/8.9/userguide/incremental_build.html#sec:disable-state-tracking in the Gradle documentation.
   > Failed to create MD5 hash for file content.

Please never share screenshots of text anywhere unless you want to show more than the text like colors or IDE annotations. Screenshots are harder to read especially on mobile, much harder to copy from, and nearly impossible to search for.

Besidest that, your error message is quite clear, isn’t it? copyConfigFiles tries to copy files to a directory that contains unreadable files.
If you want to get a meaningful suggestion how to solve it, you shared way too less information, like what that task actually looks like or what it does, …