I'm having this problem when running an Android project in Flutter.
I tried to solve the problem by reading this solution: Execution failed for task ':app:mapDebugSourceSetPaths'. > Error while evaluating property 'extraGeneratedResDir' of task, but it didn't help, yesterday the project was running perfectly
here is the complete error displayed in the console:
Launching lib\main.dart on 23021RAAEG in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mapDebugSourceSetPaths'.
> Cannot access input property 'localResources' of task ':app:mapDebugSourceSetPaths'. Accessing unreadable inputs or outputs is not supported. Declare the task as untracked by using Task.doNotTrackState(). For more information, please refer to .3/userguide/incremental_build.html#disable-state-tracking in the Gradle documentation.
> java.io.IOException: Cannot snapshot C:\Users\xabla\OneDrive\Ambiente de Trabalho\projecs\messages\android\app\src\main\res\drawable\launch_background.xml: not a regular file
* 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 .
BUILD FAILED in 7s
Error: Gradle task assembleDebug failed with exit code 1
Exited (1).