当前位置:网站首页>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
边栏推荐
- 力扣 710. 黑名单中的随机数
- Vsphere+ and vsan+ are coming! VMware hybrid cloud focus: native, fast migration, mixed load
- CKS CKA CKAD 将终端更改为远程桌面
- 攻防演习防御体系构建之第三篇之建立实战化的安全体系
- 思科考试--路由的概念和配置考试
- The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
- Microservice stability management
- Jielizhi, production line assembly link [chapter]
- 软考信息系统项目管理师_整理的十大管理过程的简写帮助记忆背诵---软考高级之信息系统项目管理师054
- 工作中非常重要的测试策略,你大概没注意过吧
猜你喜欢

CKS CKA ckad change terminal to remote desktop

Wechat personal small store one click opening assistant applet development

正则系列之组和范围(Groups and Ranges)

测试人进阶技能:单元测试报告应用指南

赵福全:短期解决保供,长期要打造安全、高效有韧性的供应链

Reprint CSDN article operation

Flynk SQL client uses comparison and is familiar with official documents

YOGA27多维一体电脑,兼具出色外观与高端配置

"Trust machine" empowers development

Explain ThreadLocal in detail
随机推荐
正则系列之组和范围(Groups and Ranges)
Data enhancement of semi supervised learning
实在RPA:银行数字化,业务流程自动化“一小步”,贷款审核效率“一大步”
Explain the use of locksupport in detail
[MySQL] index classification
Wechat personal small store one click opening assistant applet development
Unable to climb hill sort, directly insert sort
AAAI22 | 结构标记和交互建模:用于图分类的“SLIM”网络
Business visualization - make your flowchart'run'up
2022安全员-C证考试题模拟考试题库及模拟考试
半监督学习之数据增强
window10安装wsl(一)(WslRegisterDistribution ERROR)
数字化转型道阻且长,如何迈好关键的第一步
工作中非常重要的测试策略,你大概没注意过吧
软考信息系统项目管理师_整理的十大管理过程的简写帮助记忆背诵---软考高级之信息系统项目管理师054
Explain JMM in detail
Some abilities can't be learned from work. Look at this article, more than 90% of peers
"35 years old, the boss of the company, with a monthly salary of 20000, give away takeout": the times abandoned you, not even saying goodbye
Advanced skills of testers: a guide to the application of unit test reports
Copy ‘XXXX‘ to effectively final temp variable