Skip to content
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

error #606

Open
krishnapada opened this issue Oct 21, 2024 · 5 comments
Open

error #606

krishnapada opened this issue Oct 21, 2024 · 5 comments
Labels

Comments

@krishnapada
Copy link

flutter pub get
dart run flutter_launcher_icons
Resolving dependencies...
Downloading packages...
async 2.11.0 (2.12.0 available)
characters 1.3.0 (1.3.1 available)
collection 1.18.0 (1.19.1 available)
fake_async 1.3.1 (1.3.2 available)
flutter_lints 4.0.0 (5.0.0 available)
leak_tracker 10.0.5 (10.0.7 available)
leak_tracker_flutter_testing 3.0.5 (3.0.8 available)
lints 4.0.0 (5.1.0 available)
matcher 0.12.16+1 (0.12.17 available)
material_color_utilities 0.11.1 (0.12.0 available)
meta 1.15.0 (1.16.0 available)
path 1.9.0 (1.9.1 available)
stack_trace 1.11.1 (1.12.0 available)
string_scanner 1.2.0 (1.4.0 available)
test_api 0.7.2 (0.7.3 available)
vm_service 14.2.5 (14.3.0 available)
Got dependencies!
16 packages have newer versions incompatible with dependency constraints.
Try flutter pub outdated for more information.
Building package executable...
Built flutter_launcher_icons:flutter_launcher_icons.
════════════════════════════════════════════
FLUTTER LAUNCHER ICONS (v0.14.1)
════════════════════════════════════════════

• Creating default icons Android

✕ Could not generate launcher icons
PathNotFoundException: Cannot open file, path = 'assets/icon/icon.png' (OS Error: No such file or directory, errno = 2)

@JayMoliya33
Copy link

flutter pub get dart run flutter_launcher_icons Resolving dependencies... Downloading packages... async 2.11.0 (2.12.0 available) characters 1.3.0 (1.3.1 available) collection 1.18.0 (1.19.1 available) fake_async 1.3.1 (1.3.2 available) flutter_lints 4.0.0 (5.0.0 available) leak_tracker 10.0.5 (10.0.7 available) leak_tracker_flutter_testing 3.0.5 (3.0.8 available) lints 4.0.0 (5.1.0 available) matcher 0.12.16+1 (0.12.17 available) material_color_utilities 0.11.1 (0.12.0 available) meta 1.15.0 (1.16.0 available) path 1.9.0 (1.9.1 available) stack_trace 1.11.1 (1.12.0 available) string_scanner 1.2.0 (1.4.0 available) test_api 0.7.2 (0.7.3 available) vm_service 14.2.5 (14.3.0 available) Got dependencies! 16 packages have newer versions incompatible with dependency constraints. Try flutter pub outdated for more information. Building package executable... Built flutter_launcher_icons:flutter_launcher_icons. ════════════════════════════════════════════ FLUTTER LAUNCHER ICONS (v0.14.1) ════════════════════════════════════════════

• Creating default icons Android

✕ Could not generate launcher icons PathNotFoundException: Cannot open file, path = 'assets/icon/icon.png' (OS Error: No such file or directory, errno = 2)

Getting same issue

@Flattih
Copy link

Flattih commented Oct 29, 2024

getting same issue

@Ali-Toosi
Copy link

Ali-Toosi commented Oct 30, 2024

You are using the default path provided in the template. You should update flutter_launcher_icons.yaml (or whatever else your yaml file is called) to actually use your own image file. I.e. replace 'assets/icon/icon.png' with your own file e.g. 'assets/images/logo.png'.

@krishnapada
Copy link
Author

You are using the default path provided in the template. You should update flutter_launcher_icons.yaml (or whatever else your yaml file is called) to actually use your own image file. I.e. replace 'assets/icon/icon.png' with your own file e.g. 'assets/images/logo.png'.

yes do this but above error was throwing
" image_path: "assets/images/launcher_icon.png" my custom path

@krishnapada
Copy link
Author

krishnapada commented Nov 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants