inflearn logo
講義

講義

知識共有

kcontrolさんの投稿

kcontrol kcontrol

@kcontrol5397

レビュー投稿数
3
平均評価
4.0

投稿 3

Q&A

Image.asset이 정상적으로 되지 않습니다.

공백을 2칸씩 변경해도 동일하게 파일을 못찾습니다ㅠ pubsepc.yaml 파일은 아래와 같습니다. # To add assets to your application, add an assets section, like this: assets: - assets/pic.jpg # - images/a_dot_burr.jpeg # - images/a_dot_ham.jpeg 에러 메세지는 하기와 같습니다. ======== Exception caught by image resource service ================================================ The following assertion was thrown resolving an image codec: Unable to load asset: "assets/pic.jpg". Exception: Asset not found When the exception was thrown, this was the stack: #0 PlatformAssetBundle.loadBuffer (package:flutter/src/services/asset_bundle.dart:372:7) #1 AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:811:18) Image provider: AssetImage(bundle: null, name: "assets/pic.jpg") Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#f2583(), name: "assets/pic.jpg", scale: 1.0) ====================================================================================================

いいね数
0
コメント数
2
閲覧数
1483