当前位置:网站首页>flutter Unable to load asset: assets/images/888. png
flutter Unable to load asset: assets/images/888. png
2022-07-01 23:11:00 【Liu Xiaobo】
Report errors
Debug service listening on ws://127.0.0.1:65376/KSCFS_eCpng=/ws
Syncing files to device iPhone 13…
======== Exception caught by image resource service ================================================
The following assertion was thrown resolving an image codec:
Unable to load asset: assets/images/888.png
When the exception was thrown, this was the stack:
#0 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:237:7)
#1 AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:658:14)
Image provider: AssetImage(bundle: null, name: “assets/images/888.png”)
Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#05eaa(), name: “assets/images/888.png”, scale: 1.0)

The wrong way to write

flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/images/
Correct writing
# The following section is specific to Flutter packages.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/images/

namely assets and uses-material-design: true It's aligned
边栏推荐
猜你喜欢

什么是马赛克?

【嵌入式系统课设】单个按键控制LED灯

Turn -- bring it and use it: share a gadget for checking memory leaks
![Compare the version number [double pointer to intercept the string you want]](/img/19/4f858ffdc1281d6b8b18a996467f10.png)
Compare the version number [double pointer to intercept the string you want]

MySQL -- index of InnoDB storage engine

mysql binlog的清理

CKS CKA CKAD 将终端更改为远程桌面

Deadlock handling strategies - prevent deadlock, avoid deadlock, detect and remove deadlock

window安装wsl(二)

leetcode - 287. Find duplicates
随机推荐
思科--高可用和高可靠网络考试
Jielizhi, production line assembly link [chapter]
思科考试--路由的概念和配置考试
Unable to climb hill sort, directly insert sort
Multiple smart pointers
shell 流程控制
数字峰会人气火爆,城链科技引发新一轮商业变革
Explain ThreadLocal in detail
Understanding threads
数字化转型道阻且长,如何迈好关键的第一步
Flink SQL command line connection yarn
2022年起重机司机(限桥式起重机)考试试题及模拟考试
【微服务|Sentinel】sentinel整合openfeign
Compare the version number [double pointer to intercept the string you want]
What class loading mechanisms does the JVM have?
Openresty load balancing
CKS CKA CKAD 将终端更改为远程桌面
通过Go语言创建CA与签发证书
“35岁,公司老总,月薪2万送外卖“:时代抛弃你,连声再见都没有
想请教一下,证券开户选择哪个证券比较好?手机开户是安全么?