-
Notifications
You must be signed in to change notification settings - Fork 409
PathNotFoundException: Cannot open file, path = 'assets/icon/icon.png' (OS Error: No such file or directory, errno = 2) #628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @umairshah3sb , I had the same issue, and it was solved by following the discussion in #588 . You might want to check it out—it could help you as well! |
What is suggested in #588 is a workaround. isn't there a way that it can pick the directory given instead of having to edit the file manually |
Looking at your pubspec.yaml file seems like you havent mentioned a path to your icon.png file Also make sure to mention it under assets. Make sure to also update the flutter_laucher_icons.yaml file that is generated at the root of your project. |
Having a very similar issue: pubspec.yaml (mostly generated) changed the image_path throughout
dart run flutter_launcher_icons
why is this looking for 'assets/icon/icon.png'? |
ℹ️ Info
💬 Description
📜 Pubspec.yaml
The text was updated successfully, but these errors were encountered: