I trying to setup flutter in visual studio code and I am getting below error whenever i run the project. Its the initial main.dart when we create a new flutter project. I tried searching many places but am not able to resolve the issue.
Launching lib\main.dart on Android SDK built for x86 in debug mode... Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:mergeDebugResources'.
Multiple task action failures occurred: A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.5.0-5435860-windows Daemon #0: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.5.0-5435860-windows Daemon #2: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.5.0-5435860-windows Daemon #1: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.5.0-5435860-windows Daemon #3: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.5.0-5435860-windows Daemon #4: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.5.0-5435860-windows Daemon #5: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.5.0-5435860-windows Daemon #6: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-3.5.0-5435860-windows Daemon #7: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does.
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 1m 8s Finished with error: Gradle task assembleDebug failed with exit code 1