当前位置:网站首页>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
边栏推荐
- Réimpression de l'article csdn
- leetcode - 287. Find duplicates
- 测试人进阶技能:单元测试报告应用指南
- Mysql 5.7 实现 rank 排名
- Redis~02 cache: how to ensure data consistency in MySQL and redis when updating data?
- RPA: Bank digitalization, business process automation "a small step", and loan review efficiency "a big step"
- Genicam gentl standard ver1.5 (4) Chapter 5 acquisition engine
- 通过Go语言创建CA与签发证书
- CKS CKA CKAD 将终端更改为远程桌面
- 【Kotlin 第三方 】coil koltin协程图片加载库Coil类似Glide的图片加载第三方
猜你喜欢
"Trust machine" empowers development
Unable to climb hill sort, directly insert sort
Introduction and use of plantuml
mysql binlog的清理
CKS CKA ckad change terminal to remote desktop
CKS CKA CKAD 将终端更改为远程桌面
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
Using emqx cloud to realize one machine one secret verification of IOT devices
Istio、eBPF 和 RSocket Broker:深入研究服务网格
rviz打开后如何显示实时2D地图
随机推荐
Cisco -- highly available and reliable network examination
Some abilities can't be learned from work. Look at this article, more than 90% of peers
[机缘参悟-35]:鬼谷子-飞箝篇-远程连接、远程控制与远程测试之术
MySQL -- index of MyISAM storage engine
想请教一下,证券开户选择哪个证券比较好?手机开户是安全么?
Redis~02 cache: how to ensure data consistency in MySQL and redis when updating data?
Jielizhi Bluetooth headset quality control and production skills [chapter]
使用3DMax制作一个象棋棋子
Jerry's records are powered by Vbat with a power supply voltage of 4.2V [chapter]
通过Go语言创建CA与签发证书
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
Flynk SQL client uses comparison and is familiar with official documents
mysql ---- Oracle中的rownum转换成MySQL
Unable to climb hill sort, directly insert sort
"Trust machine" empowers development
Treatment of insufficient space in the root partition of armbain system
用JpaTransactionManager操作数据库事务
Microservice stability management
关于游戏性能优化的一些感想
Force buckle 710 Random numbers in the blacklist