skip to Main Content

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


  1. 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.

    Login or Signup to reply.
  2. Try this CMD :

    1. Invalidate cache & restart

    2. flutter clean

    3. flutter pub get

    then try to build again.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search