当前位置:网站首页>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
边栏推荐
- 通过Go语言创建CA与签发证书
- 从第三次技术革命看企业应用三大开发趋势
- 众昂矿业:发展以氟化工为主的特色化工产业具有先天优势
- [MySQL] database optimization method
- Explain the use of locksupport in detail
- Genicam gentl standard ver1.5 (4) Chapter 5 acquisition engine
- Redis~02 缓存:更新数据时如何保证MySQL和Redis中的数据一致性?
- Use and function of spark analyze command map join broadcast join
- vim给目录加颜色
- Advanced skills of testers: a guide to the application of unit test reports
猜你喜欢
Turn -- the underlying debugging principle of GDB is so simple
CKS CKA ckad change terminal to remote desktop
YOGA27多维一体电脑,兼具出色外观与高端配置
Flynk SQL client uses comparison and is familiar with official documents
tcpdump命令使用详解
有些能力,是工作中学不来的,看看这篇超过90%同行
Groups and ranges of regular series
2022年危险化学品经营单位安全管理人员考试题及在线模拟考试
Jielizhi, production line assembly link [chapter]
CADD课程学习(3)-- 靶点药物相互作用
随机推荐
“35岁,公司老总,月薪2万送外卖“:时代抛弃你,连声再见都没有
毕业季,既是告别,也是新的开始
【小程序】通过scroll-view组件实现左右【滑动】列表
CKS CKA ckad change terminal to remote desktop
Jerry's records are powered by Vbat with a power supply voltage of 4.2V [chapter]
[image segmentation] 2021 segformer neurips
flutter Unable to load asset: assets/images/888.png
Cisco test -- the concept and configuration test of routing
Cisco -- an external tool for WAN's concept examination
mysql binlog的清理
Stimulate new kinetic energy and promote digital economy in multiple places
从第三次技术革命看企业应用三大开发趋势
Where can the courses purchased by CSDN be accessed
认识线程
The principle, testing and Countermeasures of malicious software reverse closing EDR
Preparation of functional test report
window安装wsl(二)
shell 自定义函数
Timer和ScheduledThreadPoolExecutor的区别
Explain the use of locksupport in detail