after I upgrade Flutter version the project accidently throw many errors. and this are errors which I don't understand how to solve.
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
Where: Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1151
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1
[enter image description here](https://i.sstatic.net/1jpnr.png)
- I tried flutter clean , flutter pub get , flutter pub upgrade
- Also i tried : distributionUrl=https://services.gradle.org/distributions/gradle-7.5-all.zip _ And also I removed the cache in my C/username/Appdata/local/cache and re run my app => same error
- tried removing build folder and pubspec.lock and re run .
My files which can help to solve my problem :
pubspec.yaml enter image description here
android/build.gradle enter image description here
app/build.gradle enter image description here