Reputation: 1
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
Where: Script 'C:\Users\anjana\flutter_windows_2.5.3-stable\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1201
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\Users\anjana\flutter_windows_2.5.3-stable\flutter\bin\flutter.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
Upvotes: 0
Views: 60
Reputation: 157
Try this CMD :
Invalidate cache & restart
flutter clean
flutter pub get
then try to build again.
Upvotes: 0
Reputation: 197
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.
Upvotes: 0