'I am seeing this error "Execution failed for task ':app:compileFlutterBuildDebug'."

I have run flutter upgrade after that it told me to Flutter App Migration from Previous Version (Android Embedding V2), and after doing it, I am seeing this error.

Error image

enter image description here

error message

[FAILURE: Build failed with an exception.
  • Where: Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102

  • What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • 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 32s Exception: Gradle task assembleDebug failed with exit code 1



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source