当前位置:网站首页>flutter Unable to load asset: assets/images/888.png
flutter Unable to load asset: assets/images/888.png
2022-07-01 22:30:00 【刘刘小博】
报错
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)
错误的写法
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/
正确的写法
# 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/
即 assets 和 uses-material-design: true 是对齐的
边栏推荐
- MySQL -- index of MyISAM storage engine
- Tcpdump command usage details
- 想请教一下,证券开户选择哪个证券比较好?手机开户是安全么?
- 转--深入LUA脚本语言,让你彻底明白调试原理
- [QT widget] encapsulates a simple thread management class
- 若干互联网暴露面的收敛及处置建议
- Demo program implementation of QT version Huarui camera
- mysql ---- Oracle中的rownum转换成MySQL
- 死锁的处理策略—预防死锁、避免死锁、检测和解除死锁
- 微服务服务稳定性治理
猜你喜欢
Turn -- the underlying debugging principle of GDB is so simple
Jielizhi, production line assembly link [chapter]
Cisco exam -- redundant network
Reprint CSDN article operation
Jerry's burning of upper version materials requires [chapter]
[JUC learning road day 9] barrier derivatives
Turn -- go deep into Lua scripting language, so that you can thoroughly understand the debugging principle
Today's sleep quality record 71 points
SAP intelligent robot process automation (IRPA) solution sharing
[image segmentation] 2021 segformer neurips
随机推荐
Introduction and use of plantuml
Simple interactive operation of electron learning (III)
转--利用C语言中的setjmp和longjmp,来实现异常捕获和协程
El input text field word limit, beyond which the display turns red and input is prohibited
Armbain系统根分区空间不足处理
Turn -- use setjmp and longjmp in C language to realize exception capture and collaboration
Redis~02 缓存:更新数据时如何保证MySQL和Redis中的数据一致性?
攻防演习防御体系构建之第三篇之建立实战化的安全体系
Réimpression de l'article csdn
Deadlock handling strategies - prevent deadlock, avoid deadlock, detect and remove deadlock
shell 自定义函数
shell 流程控制
Use 3DMAX to make a chess piece
Detailed explanation of common configurations in redis configuration file [easy to understand]
想请教一下,证券开户选择哪个证券比较好?手机开户是安全么?
用JpaTransactionManager操作数据库事务
Arlo's thinking after confusion
Cloud Vulnerability Global Database
tcpdump命令使用详解
Tcpdump command usage details