Flutter assest bundle not exists, i don’t know how to fix this problem. please anybody help me to solve this prroblem.Anybody say that error in above screenshot.I cannot find that error please help me.how can i solve this problem?
Flutter assest bundle not exists, i don’t know how to fix this problem. please anybody help me to solve this prroblem.Anybody say that error in above screenshot.I cannot find that error please help me.how can i solve this problem?
2
Answers
Your image is not in the same location as you are calling it in your project.
You are calling
assets/images/bus1.jpg
but you’ve put your image into your project’s main folder. This is not correct.Create an
assets
folder within your project and in that folder, you can create oneimages
folder, and place your image in there.Then, you will also need to add your asset to your configuration file called
pubspec.yaml
, under your main project folder.Use the following link, to learn how to use Assets and Images
if you have not added this in
pubspec.yaml
add this &
pub get
to get the packages done.if this doesn’t solves it can you please show the structure of the project (i mean the folders flow) so that we can figure the path of the asset image accordingly.