前言
在Flutter开发中,经常会遇到一些稀奇古怪的的报错,比如版本更新之后会报错、文件没有导入会报错、第三方插件版本不一致的报错等等,而且最近几年Flutter不断完善和更新的速度越来越快,这就需要Flutter相关的开发者时刻保持不断学习的心态,来应对在Flutter开发中遇到的各种突发情况。本篇博文就来分享一下关于Flutter开发中运行Flutter项目之后报错The following assertion was thrown resolving an image codec:Unable to load asset:…的解决方法,记录一下,方便后期查阅使用。
报错提示
在终端中运行flutter run命令之后,项目控制台报错,具体报错信息提示如下所示:
===| Exception caught by image resource service |================
The following assertion was thrown resolving an image codec:
Unable to load asset: assets/mine/mine_set.png