Target kernel_snapshot failed: Exception: Errors during snapshot creation: null build failed

前端 未结 3 1400
醉酒成梦
醉酒成梦 2021-01-20 04:53

I have updated to the latest flutter update. When I want to start the project, it returns an error. The project depends on several repositories and I don\'t know if that is

相关标签:
3条回答
  • 2021-01-20 05:10

    i found this issue issue TL:DR here is a summary

    It looks like your local engine build flutter/engine and framework + tool flutter/flutter are out of sync: You're using an engine from when after SemanticsFlag.isLink was added, but a framework/tool from before it rolled into the framework.

    You need to ensure that you're using compatible engines and frameworks. In this case, you need to either update flutter/flutter to a newer version or roll back flutter/engine to an older version.42356

    0 讨论(0)
  • 2021-01-20 05:30

    This error also occurs due to Plugin / Packages incompatibility. There must be some packages which is upgraded to new version in your pubsec.yaml file and you are still using old version/ deprecated methods of it.

    Thus you need to replace all deprecated methods with new.

    0 讨论(0)
  • 2021-01-20 05:33

    Solution 1
    1.Ensure compatible engines and frameworks. 
    2.Update flutter or install flutter to a newer version, 
    
    still issue persists,  Roll back flutter or engine to an older version.
    
    Best solution to fix by time saving but not preferable, please follow 
    
    Solution 2
    1. Download latest version flutter sdk and setup.
    2. Fix it by creating a new project and copying the code from the old one. 

    For more details refer the below link

    http://codekhichdi.com/flutter/target-kernel_snapshot-failed-exception-errors-during-snapshot-creation-null

    0 讨论(0)
提交回复
热议问题