It would be good to see the pubspec.yaml file and error message to solve this problem. When adding assets to the pubspec.yaml file, you need to make sure that the places you will put are correct, including spaces, it would be good to provide more details to solve the problem.