skip to Main Content

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?

enter image description here

2

Answers


  1. 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 one images folder, and place your image in there.

    ProjectFolder:
        -build
        -ios
        -lib
        ...
        -assets
            -images 
                -bus1.jpg
    

    Then, you will also need to add your asset to your configuration file called pubspec.yaml, under your main project folder.

    flutter:
      assets:
        - assets/images/bus1.jpg
    

    Use the following link, to learn how to use Assets and Images

    Login or Signup to reply.
  2. if you have not added this in pubspec.yaml
    add this & pub get to get the packages done.

    flutter:  
      assets:
       - assets/
       - assets/images/
    

    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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search