当前位置:网站首页>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
边栏推荐
- Flink SQL command line connection yarn
- leetcode - 287. Find duplicates
- Convergence and disposal suggestions of some Internet exposure surfaces
- [MySQL] index classification
- Jerry's records are powered by Vbat with a power supply voltage of 4.2V [chapter]
- 【微服务|Sentinel】SentinelResourceAspect详解
- Cisco -- highly available and reliable network examination
- The principle, testing and Countermeasures of malicious software reverse closing EDR
- Explain the volatile keyword
- 2022年危险化学品经营单位安全管理人员考试题及在线模拟考试
猜你喜欢

flutter Unable to load asset: assets/images/888.png

Explain JMM in detail

CKS CKA ckad change terminal to remote desktop
![[MySQL] index classification](/img/73/fb9f28457b373ad35d2f6068387b47.png)
[MySQL] index classification

Turn -- go deep into Lua scripting language, so that you can thoroughly understand the debugging principle

【嵌入式系统课设】单个按键控制LED灯
![[机缘参悟-35]:鬼谷子-飞箝篇-远程连接、远程控制与远程测试之术](/img/08/9ecfd53a04e147022dde3449aec132.png)
[机缘参悟-35]:鬼谷子-飞箝篇-远程连接、远程控制与远程测试之术
![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]

思科--WAN 的概念考试外部工具

马赛克后挡板是什么?
随机推荐
实在RPA:银行数字化,业务流程自动化“一小步”,贷款审核效率“一大步”
会声会影2022智能、快速、简单的视频剪辑软件
MySQL -- convert rownum in Oracle to MySQL
Data enhancement of semi supervised learning
leetcode - 287. Find duplicates
Yoga27 multidimensional all-in-one computer with excellent appearance and high-end configuration
轉載csdn文章操作
[daily training] 326 Power of 3
plain framework的实际应用和扩展
shell 流程控制
Timer和ScheduledThreadPoolExecutor的区别
YOGA27多维一体电脑,兼具出色外观与高端配置
常见的二十种软件测试方法详解(史上最全)
众昂矿业:发展以氟化工为主的特色化工产业具有先天优势
Explain ThreadLocal in detail
Happy number [fast and slow pointer of ring PROBLEMS]
Cisco -- highly available and reliable network examination
Deadlock handling strategies - prevent deadlock, avoid deadlock, detect and remove deadlock
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
[MySQL] database optimization method