码迷,mamicode.com
首页 > 其他好文 > 详细

Flutter项目删除了相关的dart文件之后运行flutter run或者 F5编译运行时会报这个错误.... were declared as an inputs, but did not exist. Check the definition of target:kernel_snapshot for errors

时间:2020-04-09 10:41:45      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:targe   技术   com   文件   导致   ima   def   inpu   init   

我所做的项目报的错误是这样的

技术图片

 

 因为报错内容主要是".... were declared as an inputs, but did not exist. Check the definition of target:kernel_snapshot for errors",应该时删除了文件之后,运行时找不到对应的文件,感觉时缓存问题,没有自动更新到那个文件(kernel_snapshot.d)的内容,导致这个文件里面还会存在之前删除了的文件的路径,这个时候只要运行一下flutter clean清楚一下快照缓存,之后再次执行flutter run就成功了

技术图片

 

 刚接触Flutter,继续学习吧

Flutter项目删除了相关的dart文件之后运行flutter run或者 F5编译运行时会报这个错误.... were declared as an inputs, but did not exist. Check the definition of target:kernel_snapshot for errors

标签:targe   技术   com   文件   导致   ima   def   inpu   init   

原文地址:https://www.cnblogs.com/chorkiu/p/12664884.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!