Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
-
Where:
Script ‘C:Usersanjanaflutter_windows_2.5.3-stableflutterpackagesflutter_toolsgradleflutter.gradle’ line: 1201 -
What went wrong:
Execution failed for task ‘:app:compileFlutterBuildDebug’.
Process ‘command ‘C:Usersanjanaflutter_windows_2.5.3-stableflutterbinflutter.bat” finished with non-zero exit value 1
I need time get an method to resolve it
I have tried pub get pub upgrade flutter pub upgrade –main versions
2
Answers
Although I have no way of narrowing down your specific problem, I can recommend trying to create a new flutter project and copying your lib over.
Try this CMD :
Invalidate cache & restart
flutter clean
flutter pub get
then try to build again.